--------------------------------------------------------------------------- computeBuildKind ---------------------------------------------------------------------------
(t *testing.T)
| 112 | // --------------------------------------------------------------------------- |
| 113 | |
| 114 | func 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 |
nothing calls this directly
no test coverage detected