Files Coverage
api/authpb/auth.pb.go 50.70%
api/etcdserverpb/etcdserver.pb.go 54.14%
api/etcdserverpb/gw/rpc.pb.gw.go 25.48%
api/etcdserverpb/raft_internal.pb.go 48.90%
api/etcdserverpb/raft_internal_stringer.go 38.71%
api/etcdserverpb/rpc.pb.go 47.01%
api/membershippb/membership.pb.go 7.94%
api/mvccpb/kv.pb.go 50.90%
api/v3rpc/rpctypes/error.go 80.95%
api/version/version.go 77.78%
auth/jwt.go 77.53%
auth/metrics.go 87.50%
auth/nop.go 0.00%
auth/options.go 92.50%
auth/range_perm_cache.go 71.43%
auth/simple_token.go 89.43%
auth/store.go 83.47%
client/auth_role.go 61.61%
client/auth_user.go 54.86%
client/cancelreq.go 100.00%
client/client.go 84.64%
client/cluster_error.go 100.00%
client/curl.go 13.04%
client/discover.go 0.00%
client/json.go 37.93%
client/keys.go 92.46%
client/members.go 85.48%
client/mock/mockserver/mockserver.go 72.73%
client/util.go 20.00%
clientv3/auth.go 98.63%
clientv3/balancer/balancer.go 86.36%
clientv3/balancer/connectivity/connectivity.go 100.00%
clientv3/balancer/picker/err.go 100.00%
clientv3/balancer/picker/picker.go 50.00%
clientv3/balancer/picker/roundrobin_balanced.go 100.00%
clientv3/balancer/resolver/endpoint/endpoint.go 82.76%
clientv3/balancer/utils.go 100.00%
clientv3/client.go 75.61%
clientv3/clientv3util/util.go 0.00%
clientv3/cluster.go 93.88%
clientv3/compact_op.go 100.00%
clientv3/compare.go 75.00%
clientv3/concurrency/election.go 82.03%
clientv3/concurrency/key.go 80.00%
clientv3/concurrency/mutex.go 67.12%
clientv3/concurrency/session.go 93.18%
clientv3/concurrency/stm.go 79.19%
clientv3/credentials/credentials.go 90.24%
clientv3/ctx.go 100.00%
clientv3/kv.go 97.10%
clientv3/lease.go 92.59%
clientv3/leasing/cache.go 87.78%
clientv3/leasing/kv.go 89.70%
clientv3/leasing/txn.go 91.27%
clientv3/leasing/util.go 91.67%
clientv3/logger.go 17.78%
clientv3/maintenance.go 75.68%
clientv3/mirror/syncer.go 73.68%
clientv3/namespace/kv.go 75.00%
clientv3/namespace/lease.go 75.00%
clientv3/namespace/util.go 100.00%
clientv3/namespace/watch.go 93.94%
clientv3/naming/grpc.go 75.44%
clientv3/op.go 73.33%
clientv3/ordering/kv.go 85.29%
clientv3/ordering/util.go 100.00%
clientv3/retry.go 87.93%
clientv3/retry_interceptor.go 65.07%
clientv3/snapshot/v3_snapshot.go 53.49%
clientv3/txn.go 100.00%
clientv3/utils.go 100.00%
clientv3/watch.go 91.35%
clientv3/yaml/config.go 86.67%
contrib/raftexample/httpapi.go 17.46%
contrib/raftexample/kvstore.go 70.83%
contrib/raftexample/listener.go 82.61%
contrib/raftexample/main.go 0.00%
contrib/raftexample/raft.go 60.54%
contrib/recipes/barrier.go 90.00%
contrib/recipes/client.go 64.71%
contrib/recipes/double_barrier.go 75.00%
contrib/recipes/key.go 78.08%
contrib/recipes/priority_queue.go 66.67%
contrib/recipes/queue.go 65.52%
contrib/recipes/rwmutex.go 82.35%
contrib/recipes/watch.go 78.26%
embed/config.go 57.45%
embed/config_logging.go 53.38%
embed/config_logging_journal_unix.go 0.00%
embed/etcd.go 77.35%
embed/serve.go 65.24%
embed/util.go 100.00%
etcdctl/ctlv2/command/auth_commands.go 67.39%
etcdctl/ctlv2/command/backup_command.go 67.57%
etcdctl/ctlv2/command/cluster_health.go 11.84%
etcdctl/ctlv2/command/error.go 0.00%
etcdctl/ctlv2/command/exec_watch_command.go 13.85%
etcdctl/ctlv2/command/format.go 28.00%
etcdctl/ctlv2/command/get_command.go 75.00%
etcdctl/ctlv2/command/ls_command.go 69.77%
etcdctl/ctlv2/command/member_commands.go 20.47%
etcdctl/ctlv2/command/mk_command.go 75.00%
etcdctl/ctlv2/command/mkdir_command.go 33.33%
etcdctl/ctlv2/command/rm_command.go 86.67%
etcdctl/ctlv2/command/rmdir_command.go 25.00%
etcdctl/ctlv2/command/role_commands.go 57.14%
etcdctl/ctlv2/command/set_command.go 82.35%
etcdctl/ctlv2/command/set_dir_command.go 66.67%
etcdctl/ctlv2/command/update_command.go 30.77%
etcdctl/ctlv2/command/update_dir_command.go 33.33%
etcdctl/ctlv2/command/user_commands.go 61.54%
etcdctl/ctlv2/command/util.go 45.51%
etcdctl/ctlv2/command/watch_command.go 80.00%
etcdctl/ctlv2/ctl.go 83.33%
etcdctl/ctlv3/command/alarm_command.go 78.38%
etcdctl/ctlv3/command/auth_command.go 71.19%
etcdctl/ctlv3/command/check.go 14.00%
etcdctl/ctlv3/command/compaction_command.go 73.91%
etcdctl/ctlv3/command/defrag_command.go 37.21%
etcdctl/ctlv3/command/del_command.go 70.73%
etcdctl/ctlv3/command/elect_command.go 41.43%
etcdctl/ctlv3/command/ep_command.go 62.94%
etcdctl/ctlv3/command/error.go 0.00%
etcdctl/ctlv3/command/get_command.go 75.00%
etcdctl/ctlv3/command/global.go 58.67%
etcdctl/ctlv3/command/lease_command.go 65.35%
etcdctl/ctlv3/command/lock_command.go 49.06%
etcdctl/ctlv3/command/make_mirror_command.go 13.89%
etcdctl/ctlv3/command/member_command.go 70.37%
etcdctl/ctlv3/command/migrate_command.go 63.87%
etcdctl/ctlv3/command/move_leader_command.go 71.05%
etcdctl/ctlv3/command/printer.go 43.20%
etcdctl/ctlv3/command/printer_fields.go 6.38%
etcdctl/ctlv3/command/printer_json.go 77.78%
etcdctl/ctlv3/command/printer_protobuf.go 30.43%
etcdctl/ctlv3/command/printer_simple.go 72.08%
etcdctl/ctlv3/command/printer_table.go 0.00%
etcdctl/ctlv3/command/put_command.go 78.95%
etcdctl/ctlv3/command/role_command.go 70.97%
etcdctl/ctlv3/command/snapshot_command.go 71.28%
etcdctl/ctlv3/command/txn_command.go 67.54%
etcdctl/ctlv3/command/user_command.go 62.03%
etcdctl/ctlv3/command/util.go 19.75%
etcdctl/ctlv3/command/version_command.go 100.00%
etcdctl/ctlv3/command/watch_command.go 44.09%
etcdctl/ctlv3/ctl.go 94.23%
etcdctl/ctlv3/help.go 41.90%
etcdctl/main.go 35.00%
etcdctl/snapshot/util.go 100.00%
etcdctl/snapshot/v3_snapshot.go 64.89%
etcdmain/config.go 84.21%
etcdmain/etcd.go 45.03%
etcdmain/gateway.go 24.42%
etcdmain/grpc_proxy.go 64.33%
etcdmain/main.go 55.00%
etcdmain/util.go 6.00%
etcdserver/api/capability.go 93.10%
etcdserver/api/etcdhttp/base.go 59.49%
etcdserver/api/etcdhttp/metrics.go 73.75%
etcdserver/api/etcdhttp/peer.go 87.67%
etcdserver/api/membership/cluster.go 82.10%
etcdserver/api/membership/downgrade.go 23.33%
etcdserver/api/membership/errors.go 100.00%
etcdserver/api/membership/member.go 88.46%
etcdserver/api/membership/metrics.go 100.00%
etcdserver/api/membership/store.go 57.03%
etcdserver/api/rafthttp/http.go 77.52%
etcdserver/api/rafthttp/metrics.go 100.00%
etcdserver/api/rafthttp/msg_codec.go 100.00%
etcdserver/api/rafthttp/msgappv2_codec.go 71.30%
etcdserver/api/rafthttp/peer.go 80.72%
etcdserver/api/rafthttp/peer_status.go 87.88%
etcdserver/api/rafthttp/pipeline.go 97.37%
etcdserver/api/rafthttp/probing_status.go 65.85%
etcdserver/api/rafthttp/remote.go 45.83%
etcdserver/api/rafthttp/snapshot_sender.go 84.16%
etcdserver/api/rafthttp/stream.go 81.59%
etcdserver/api/rafthttp/transport.go 86.83%
etcdserver/api/rafthttp/urlpick.go 100.00%
etcdserver/api/rafthttp/util.go 74.73%
etcdserver/api/snap/db.go 61.70%
etcdserver/api/snap/message.go 100.00%
etcdserver/api/snap/metrics.go 100.00%
etcdserver/api/snap/snappb/snap.pb.go 51.94%
etcdserver/api/snap/snapshotter.go 68.18%
etcdserver/api/v2auth/auth.go 74.43%
etcdserver/api/v2auth/auth_requests.go 69.91%
etcdserver/api/v2discovery/discovery.go 75.11%
etcdserver/api/v2error/error.go 91.67%
etcdserver/api/v2http/capability.go 33.33%
etcdserver/api/v2http/client.go 90.89%
etcdserver/api/v2http/client_auth.go 59.17%
etcdserver/api/v2http/http.go 75.00%
etcdserver/api/v2http/httptypes/errors.go 73.33%
etcdserver/api/v2http/httptypes/member.go 100.00%
etcdserver/api/v2http/metrics.go 84.62%
etcdserver/api/v2stats/leader.go 77.27%
etcdserver/api/v2stats/queue.go 28.21%
etcdserver/api/v2stats/server.go 81.03%
etcdserver/api/v2store/event.go 100.00%
etcdserver/api/v2store/event_history.go 100.00%
etcdserver/api/v2store/event_queue.go 100.00%
etcdserver/api/v2store/metrics.go 92.00%
etcdserver/api/v2store/node.go 96.53%
etcdserver/api/v2store/node_extern.go 100.00%
etcdserver/api/v2store/stats.go 91.07%
etcdserver/api/v2store/store.go 85.93%
etcdserver/api/v2store/ttl_key_heap.go 100.00%
etcdserver/api/v2store/watcher.go 86.36%
etcdserver/api/v2store/watcher_hub.go 96.30%
etcdserver/api/v2v3/cluster.go 0.00%
etcdserver/api/v2v3/server.go 0.00%
etcdserver/api/v2v3/store.go 79.61%
etcdserver/api/v2v3/watcher.go 82.89%
etcdserver/api/v3alarm/alarms.go 82.43%
etcdserver/api/v3client/v3client.go 95.24%
etcdserver/api/v3compactor/compactor.go 40.00%
etcdserver/api/v3compactor/periodic.go 90.00%
etcdserver/api/v3compactor/revision.go 79.31%
etcdserver/api/v3election/election.go 69.44%
etcdserver/api/v3election/v3electionpb/gw/v3election.pb.gw.go 37.74%
etcdserver/api/v3election/v3electionpb/v3election.pb.go 53.59%
etcdserver/api/v3lock/lock.go 70.00%
etcdserver/api/v3lock/v3lockpb/gw/v3lock.pb.gw.go 5.56%
etcdserver/api/v3lock/v3lockpb/v3lock.pb.go 50.44%
etcdserver/api/v3rpc/auth.go 81.61%
etcdserver/api/v3rpc/codec.go 77.78%
etcdserver/api/v3rpc/grpc.go 100.00%
etcdserver/api/v3rpc/header.go 85.71%
etcdserver/api/v3rpc/interceptor.go 72.67%
etcdserver/api/v3rpc/key.go 83.10%
etcdserver/api/v3rpc/lease.go 77.22%
etcdserver/api/v3rpc/maintenance.go 75.18%
etcdserver/api/v3rpc/member.go 96.77%
etcdserver/api/v3rpc/metrics.go 100.00%
etcdserver/api/v3rpc/quota.go 93.10%
etcdserver/api/v3rpc/util.go 74.19%
etcdserver/api/v3rpc/watch.go 88.44%
etcdserver/apply.go 89.44%
etcdserver/apply_auth.go 81.68%
etcdserver/apply_v2.go 89.55%
etcdserver/backend.go 58.00%
etcdserver/cindex/cindex.go 96.88%
etcdserver/cluster_util.go 66.81%
etcdserver/config.go 79.52%
etcdserver/corrupt.go 46.30%
etcdserver/errors.go 0.00%
etcdserver/metrics.go 81.63%
etcdserver/quota.go 65.75%
etcdserver/raft.go 85.82%
etcdserver/server.go 78.60%
etcdserver/server_access_control.go 50.00%
etcdserver/snapshot_merge.go 74.36%
etcdserver/storage.go 56.10%
etcdserver/util.go 98.89%
etcdserver/v2_server.go 84.62%
etcdserver/v3_server.go 73.86%
etcdserver/zap_raft.go 50.00%
lease/lease_queue.go 91.11%
lease/leasehttp/http.go 65.69%
lease/leasepb/lease.pb.go 45.73%
lease/lessor.go 88.15%
lease/metrics.go 100.00%
main.go 0.00%
mvcc/backend/backend.go 81.56%
mvcc/backend/batch_tx.go 66.67%
mvcc/backend/config_linux.go 100.00%
mvcc/backend/metrics.go 100.00%
mvcc/backend/read_tx.go 83.61%
mvcc/backend/tx_buffer.go 93.81%
mvcc/index.go 94.08%
mvcc/key_index.go 64.16%
mvcc/kv.go 40.00%
mvcc/kv_view.go 80.00%
mvcc/kvstore.go 86.52%
mvcc/kvstore_compaction.go 94.87%
mvcc/kvstore_txn.go 75.00%
mvcc/metrics.go 91.18%
mvcc/metrics_txn.go 100.00%
mvcc/revision.go 100.00%
mvcc/util.go 72.73%
mvcc/watchable_store.go 88.65%
mvcc/watchable_store_txn.go 100.00%
mvcc/watcher.go 100.00%
mvcc/watcher_group.go 89.71%
pkg/adt/interval_tree.go 54.64%
pkg/contention/contention.go 100.00%
pkg/cpuutil/endian.go 57.14%
pkg/crc/crc.go 45.45%
pkg/debugutil/pprof.go 100.00%
pkg/fileutil/dir_unix.go 100.00%
pkg/fileutil/fileutil.go 46.55%
pkg/fileutil/lock_flock.go 0.00%
pkg/fileutil/lock_linux.go 60.00%
pkg/fileutil/preallocate.go 16.67%
pkg/fileutil/preallocate_unix.go 21.43%
pkg/fileutil/purge.go 45.65%
pkg/fileutil/read_dir.go 91.30%
pkg/fileutil/sync_linux.go 100.00%
pkg/flags/flag.go 66.67%
pkg/flags/ignored.go 25.00%
pkg/flags/selective_string.go 42.50%
pkg/flags/strings.go 46.15%
pkg/flags/unique_strings.go 83.33%
pkg/flags/unique_urls.go 82.35%
pkg/flags/urls.go 0.00%
pkg/httputil/httputil.go 60.00%
pkg/idutil/id.go 100.00%
pkg/ioutil/pagewriter.go 44.68%
pkg/ioutil/readcloser.go 50.00%
pkg/ioutil/reader.go 77.78%
pkg/ioutil/util.go 66.67%
pkg/logutil/discard_logger.go 0.00%
pkg/logutil/log_level.go 22.22%
pkg/logutil/logger.go 22.22%
pkg/logutil/zap.go 75.00%
pkg/logutil/zap_grpc.go 23.81%
pkg/logutil/zap_journal.go 0.00%
pkg/netutil/isolate_linux.go 0.00%
pkg/netutil/netutil.go 32.79%
pkg/netutil/routes_linux.go 33.61%
pkg/osutil/interrupt_unix.go 92.59%
pkg/osutil/osutil.go 0.00%
pkg/osutil/signal.go 100.00%
pkg/pathutil/path.go 55.56%
pkg/pbutil/pbutil.go 70.59%
pkg/report/report.go 0.00%
pkg/report/timeseries.go 0.00%
pkg/report/weighted.go 0.00%
pkg/runtime/fds_linux.go 62.50%
pkg/schedule/schedule.go 69.01%
pkg/srv/srv.go 0.00%
pkg/systemd/journal.go 0.00%
pkg/tlsutil/cipher_suites.go 0.00%
pkg/tlsutil/tlsutil.go 65.52%
pkg/traceutil/trace.go 84.62%
pkg/transport/keepalive_listener.go 40.00%
pkg/transport/limit_listen.go 84.00%
pkg/transport/listener.go 53.48%
pkg/transport/listener_tls.go 64.24%
pkg/transport/timeout_conn.go 100.00%
pkg/transport/timeout_dialer.go 100.00%
pkg/transport/timeout_listener.go 80.00%
pkg/transport/timeout_transport.go 88.24%
pkg/transport/tls.go 0.00%
pkg/transport/transport.go 93.75%
pkg/transport/unix_listener.go 45.45%
pkg/types/id.go 100.00%
pkg/types/set.go 17.24%
pkg/types/slice.go 33.33%
pkg/types/urls.go 50.00%
pkg/types/urlsmap.go 70.83%
pkg/wait/wait.go 71.88%
pkg/wait/wait_time.go 100.00%
proxy/grpcproxy/adapter/auth_client_adapter.go 33.33%
proxy/grpcproxy/adapter/chan_stream.go 55.13%
proxy/grpcproxy/adapter/cluster_client_adapter.go 16.67%
proxy/grpcproxy/adapter/election_client_adapter.go 68.97%
proxy/grpcproxy/adapter/kv_client_adapter.go 100.00%
proxy/grpcproxy/adapter/lease_client_adapter.go 100.00%
proxy/grpcproxy/adapter/lock_client_adapter.go 100.00%
proxy/grpcproxy/adapter/maintenance_client_adapter.go 34.29%
proxy/grpcproxy/adapter/watch_client_adapter.go 100.00%
proxy/grpcproxy/auth.go 100.00%
proxy/grpcproxy/cache/store.go 95.77%
proxy/grpcproxy/cluster.go 74.49%
proxy/grpcproxy/election.go 82.61%
proxy/grpcproxy/health.go 6.45%
proxy/grpcproxy/kv.go 99.26%
proxy/grpcproxy/leader.go 100.00%
proxy/grpcproxy/lease.go 88.24%
proxy/grpcproxy/lock.go 100.00%
proxy/grpcproxy/maintenance.go 82.93%
proxy/grpcproxy/metrics.go 28.21%
proxy/grpcproxy/register.go 85.00%
proxy/grpcproxy/util.go 100.00%
proxy/grpcproxy/watch.go 95.38%
proxy/grpcproxy/watch_broadcast.go 89.33%
proxy/grpcproxy/watch_broadcasts.go 94.03%
proxy/grpcproxy/watch_ranges.go 85.71%
proxy/grpcproxy/watcher.go 92.00%
proxy/httpproxy/director.go 73.17%
proxy/httpproxy/metrics.go 100.00%
proxy/httpproxy/proxy.go 72.09%
proxy/httpproxy/reverse.go 73.11%
proxy/tcpproxy/userspace.go 57.02%
raft/bootstrap.go 63.64%
raft/confchange/confchange.go 82.16%
raft/confchange/restore.go 96.30%
raft/log.go 79.79%
raft/log_unstable.go 93.94%
raft/logger.go 50.00%
raft/node.go 89.13%
raft/quorum/joint.go 100.00%
raft/quorum/majority.go 100.00%
raft/quorum/quorum.go 100.00%
raft/quorum/voteresult_string.go 30.00%
raft/raft.go 91.00%
raft/raftpb/confchange.go 78.31%
raft/raftpb/confstate.go 100.00%
raft/raftpb/raft.pb.go 49.56%
raft/rafttest/interaction_env.go 100.00%
raft/rafttest/interaction_env_handler.go 78.33%
raft/rafttest/interaction_env_handler_add_nodes.go 69.35%
raft/rafttest/interaction_env_handler_campaign.go 100.00%
raft/rafttest/interaction_env_handler_compact.go 60.00%
raft/rafttest/interaction_env_handler_deliver_msgs.go 69.23%
raft/rafttest/interaction_env_handler_log_level.go 87.50%
raft/rafttest/interaction_env_handler_process_ready.go 79.17%
raft/rafttest/interaction_env_handler_propose.go 71.43%
raft/rafttest/interaction_env_handler_propose_conf_change.go 75.61%
raft/rafttest/interaction_env_handler_raft_log.go 36.84%
raft/rafttest/interaction_env_handler_stabilize.go 100.00%
raft/rafttest/interaction_env_handler_status.go 100.00%
raft/rafttest/interaction_env_handler_tick_heartbeat.go 100.00%
raft/rafttest/interaction_env_logger.go 29.41%
raft/rafttest/network.go 92.65%
raft/rafttest/node.go 100.00%
raft/rawnode.go 73.56%
raft/read_only.go 88.10%
raft/status.go 59.52%
raft/storage.go 91.67%
raft/tracker/inflights.go 95.92%
raft/tracker/progress.go 97.67%
raft/tracker/state.go 100.00%
raft/tracker/tracker.go 95.54%
raft/util.go 87.60%
server/mock/mockstorage/storage_recorder.go 100.00%
server/mock/mockstore/store_recorder.go 89.66%
server/mock/mockwait/wait_recorder.go 81.82%
tools/etcd-dump-logs/main.go 0.00%
wal/decoder.go 92.05%
wal/encoder.go 85.45%
wal/file_pipeline.go 95.35%
wal/metrics.go 100.00%
wal/repair.go 55.36%
wal/util.go 92.16%
wal/wal.go 58.14%
wal/walpb/record.go 100.00%
wal/walpb/record.pb.go 46.44%
Project Totals (440 files) 61.87%
Loading