(ctx context.Context, s credentials.SecurityLevel)
| 96 | } |
| 97 | |
| 98 | func createTestContext(ctx context.Context, s credentials.SecurityLevel) context.Context { |
| 99 | auth := &testAuthInfo{CommonAuthInfo: credentials.CommonAuthInfo{SecurityLevel: s}} |
| 100 | ri := credentials.RequestInfo{ |
| 101 | Method: "testInfo", |
| 102 | AuthInfo: auth, |
| 103 | } |
| 104 | return credentials.NewContextWithRequestInfo(ctx, ri) |
| 105 | } |
| 106 | |
| 107 | // errReader implements the io.Reader interface and returns an error from the |
| 108 | // Read method. |
no test coverage detected