MCPcopy
hub / github.com/larksuite/cli / TestDetectBuildKind_StableAcrossCalls

Function TestDetectBuildKind_StableAcrossCalls

internal/cmdutil/secheader_test.go:232–238  ·  view source on GitHub ↗

--------------------------------------------------------------------------- DetectBuildKind — sync.Once caching ---------------------------------------------------------------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

230// ---------------------------------------------------------------------------
231
232func TestDetectBuildKind_StableAcrossCalls(t *testing.T) {
233 a := DetectBuildKind()
234 b := DetectBuildKind()
235 if a != b {
236 t.Fatalf("DetectBuildKind() returned different values on repeat: %q vs %q", a, b)
237 }
238}
239
240// ---------------------------------------------------------------------------
241// BaseSecurityHeaders

Callers

nothing calls this directly

Calls 1

DetectBuildKindFunction · 0.85

Tested by

no test coverage detected