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

Function TestCreateAclsResponse

acl_create_response_test.go:40–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38)
39
40func TestCreateAclsResponse(t *testing.T) {
41 errmsg := "error"
42 resp := &CreateAclsResponse{
43 ThrottleTime: 100 * time.Millisecond,
44 AclCreationResponses: []*AclCreationResponse{{
45 Err: ErrInvalidRequest,
46 ErrMsg: &errmsg,
47 }},
48 }
49
50 testResponse(t, "response with error", resp, createResponseWithError)
51
52 resp.AclCreationResponses = append(resp.AclCreationResponses, new(AclCreationResponse))
53
54 testResponse(t, "response array", resp, createResponseArray)
55
56 resp.Version = 2
57 testResponse(t, "response array v2", resp, createResponseArrayV2)
58}

Callers

nothing calls this directly

Calls 1

testResponseFunction · 0.85

Tested by

no test coverage detected