Showing 1 of 1 files from the diff.

@@ -105,6 +105,16 @@
Loading
105 105
	intOpts := reuseOrNewWithCallOptions(defaultOptions, optFuncs)
106 106
	return func(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error) {
107 107
		ctx = withVersion(ctx)
108 +
		// getToken automatically
109 +
		// TODO(cfc4n): keep this code block, remove codes about getToken in client.go after pr #12165 merged.
110 +
		if c.authTokenBundle != nil {
111 +
			// equal to c.Username != "" && c.Password != ""
112 +
			err := c.getToken(ctx)
113 +
			if err != nil && rpctypes.Error(err) != rpctypes.ErrAuthNotEnabled {
114 +
				logger.Error("clientv3/retry_interceptor: getToken failed", zap.Error(err))
115 +
				return nil, err
116 +
			}
117 +
		}
108 118
		grpcOpts, retryOpts := filterCallOptions(opts)
109 119
		callOpts := reuseOrNewWithCallOptions(intOpts, retryOpts)
110 120
		// short circuit for simplicity, and avoiding allocations.
Files Coverage
auth 75.37%
client 41.99%
clientv3 77.55%
embed 56.97%
etcdctl 13.99%
etcdmain 25.91%
etcdserver 73.18%
integration 86.42%
lease 83.42%
mvcc 82.08%
pkg 71.57%
proxy 24.91%
raft 87.91%
wal 67.56%
main.go 0.00%
version/version.go 77.78%
Project Totals (403 files) 63.33%
Notifications are pending CI completion. Periodically Codecov will check the CI state, when complete notifications will be submitted. Push notifications now.
Untitled

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading