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

Function TestComputeBuildKind_ReturnsKnownValue

internal/cmdutil/secheader_test.go:114–125  ·  view source on GitHub ↗

--------------------------------------------------------------------------- computeBuildKind ---------------------------------------------------------------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

112// ---------------------------------------------------------------------------
113
114func TestComputeBuildKind_ReturnsKnownValue(t *testing.T) {
115 // Under `go test`, Main.Path is typically the module being tested
116 // ("github.com/larksuite/cli"); the concrete return may still be
117 // official, extended, or unknown depending on Main.Path and the
118 // registered providers. Just assert it's one of the defined values.
119 got := computeBuildKind()
120 switch got {
121 case BuildKindOfficial, BuildKindExtended, BuildKindUnknown:
122 default:
123 t.Fatalf("computeBuildKind() = %q, want one of official/extended/unknown", got)
124 }
125}
126
127// ---------------------------------------------------------------------------
128// classifyBuild — pure branching logic

Callers

nothing calls this directly

Calls 1

computeBuildKindFunction · 0.85

Tested by

no test coverage detected