(t *testing.T)
| 201 | } |
| 202 | |
| 203 | func TestRequestContext(t *testing.T) { |
| 204 | var req *events.LambdaFunctionURLRequest |
| 205 | require.NoError(t, json.Unmarshal(helloRequest, &req)) |
| 206 | handler := Wrap(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 207 | reqFromContext, exists := RequestFromContext(r.Context()) |
| 208 | require.True(t, exists) |
| 209 | require.NotNil(t, reqFromContext) |
| 210 | assert.Equal(t, req, reqFromContext) |
| 211 | })) |
| 212 | _, err := handler(context.Background(), req) |
| 213 | require.NoError(t, err) |
| 214 | } |
| 215 | |
| 216 | func TestStartViaEmulator(t *testing.T) { |
| 217 | addr1 := "localhost:" + strconv.Itoa(6001) |
nothing calls this directly
no test coverage detected
searching dependent graphs…