MCPcopy
hub / github.com/gofiber/fiber / Test_loadTimestamp_Empty

Function Test_loadTimestamp_Empty

middleware/logger/coverage_test.go:75–80  ·  view source on GitHub ↗

Test_loadTimestamp_Empty verifies loadTimestamp returns an empty string when the atomic value has never been stored.

(t *testing.T)

Source from the content-addressed store, hash-verified

73// Test_loadTimestamp_Empty verifies loadTimestamp returns an empty string when
74// the atomic value has never been stored.
75func Test_loadTimestamp_Empty(t *testing.T) {
76 t.Parallel()
77
78 var v atomic.Value
79 require.Empty(t, loadTimestamp(&v))
80}
81
82// Test_UnknownTagError_WithHint covers the Hint branch of Error().
83func Test_UnknownTagError_WithHint(t *testing.T) {

Callers

nothing calls this directly

Calls 1

loadTimestampFunction · 0.85

Tested by

no test coverage detected