(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestMarshalMapBad(t *testing.T) { |
| 55 | _, err := marshalMap(nil) |
| 56 | assert.Check(t, is.Error(err, "expected a pointer to a struct, got invalid"), "expected an error (argument is nil)") |
| 57 | |
| 58 | _, err = marshalMap(dummy{}) |
| 59 | assert.Check(t, is.Error(err, "expected a pointer to a struct, got struct"), "expected an error (argument is non-pointer)") |
| 60 | |
| 61 | x := 42 |
| 62 | _, err = marshalMap(&x) |
| 63 | assert.Check(t, is.Error(err, "expected a pointer to a struct, got a pointer to int"), "expected an error (argument is a pointer to non-struct)") |
| 64 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…