(t *testing.T)
| 436 | } |
| 437 | |
| 438 | func TestSafeMarshal_SerializationError(t *testing.T) { |
| 439 | payload := safeMarshal(invalidPayload{}) |
| 440 | want := `{"errorMessage":"json: error calling MarshalJSON for type lambda.invalidPayload: some error that contains '\"'","errorType":"Runtime.SerializationError"}` |
| 441 | assert.Equal(t, want, string(payload)) |
| 442 | } |
| 443 | |
| 444 | type requestRecord struct { |
| 445 | lock sync.Mutex |
nothing calls this directly
no test coverage detected
searching dependent graphs…