--------------------------------------------------------------------------- DetectBuildKind — sync.Once caching ---------------------------------------------------------------------------
(t *testing.T)
| 230 | // --------------------------------------------------------------------------- |
| 231 | |
| 232 | func 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 |
nothing calls this directly
no test coverage detected