MCPcopy Create free account
hub / github.com/cli/cli / TestFormatDebugBuild

Function TestFormatDebugBuild

pkg/cmd/version/version_test.go:14–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12}
13
14func TestFormatDebugBuild(t *testing.T) {
15 expects := "gh version 1.4.0 (2020-12-15) [debug build]\nhttps://github.com/cli/cli/releases/tag/v1.4.0\n"
16 if got := format("1.4.0", "2020-12-15", true); got != expects {
17 t.Errorf("format() = %q, wants %q", got, expects)
18 }
19}
20
21func TestChangelogURL(t *testing.T) {
22 tag := "0.3.2"

Callers

nothing calls this directly

Calls 2

formatFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected