MCPcopy
hub / github.com/aws/aws-lambda-go / TestWithFunctionARN

Function TestWithFunctionARN

lambdacontext/logger_test.go:366–375  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

364}
365
366func 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
377func TestWithTenantID(t *testing.T) {
378 options := &logOptions{}

Callers

nothing calls this directly

Calls 1

WithFunctionARNFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…