(t *testing.T)
| 454 | } |
| 455 | |
| 456 | func TestInvalidJsonInput(t *testing.T) { |
| 457 | lambdaHandler := NewHandler(func(s string) error { return nil }) |
| 458 | _, err := lambdaHandler.Invoke(context.TODO(), []byte(`{"invalid json`)) |
| 459 | assert.Equal(t, "unexpected EOF", err.Error()) |
| 460 | } |
| 461 | |
| 462 | func TestHandlerTrace(t *testing.T) { |
| 463 | handler := NewHandler(func(ctx context.Context, x int) (int, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…