MCPcopy
hub / github.com/IBM/sarama / TestSaslAuthenticateResponseV1

Function TestSaslAuthenticateResponseV1

sasl_authenticate_response_test.go:38–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestSaslAuthenticateResponseV1(t *testing.T) {
39 response := new(SaslAuthenticateResponse)
40 response.Err = ErrSASLAuthenticationFailed
41 msg := "err"
42 response.Version = 1
43 response.ErrorMessage = &msg
44 response.SaslAuthBytes = []byte(`msg`)
45 response.SessionLifetimeMs = 1
46
47 testResponse(t, "authenticate response v1", response, saslAuthenticateResponseErrV1)
48}
49
50func TestSaslAuthenticateResponseV2(t *testing.T) {
51 msg := "err"

Callers

nothing calls this directly

Calls 1

testResponseFunction · 0.85

Tested by

no test coverage detected