(t *testing.T)
| 364 | } |
| 365 | |
| 366 | func TestWithFunctionARN(t *testing.T) { |
| 367 | options := &logOptions{} |
| 368 | WithFunctionARN()(options) |
| 369 | |
| 370 | assert.Len(t, options.fields, 1) |
| 371 | assert.Equal(t, "functionArn", options.fields[0].key) |
| 372 | |
| 373 | lc := &LambdaContext{InvokedFunctionArn: "arn:aws:lambda:us-east-1:123456789:function:test"} |
| 374 | assert.Equal(t, "arn:aws:lambda:us-east-1:123456789:function:test", options.fields[0].value(lc)) |
| 375 | } |
| 376 | |
| 377 | func TestWithTenantID(t *testing.T) { |
| 378 | options := &logOptions{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…