MCPcopy
hub / github.com/cli/cli / TestProjectState

Function TestProjectState

pkg/cmd/project/shared/format/display_test.go:10–13  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestProjectState(t *testing.T) {
11 assert.Equal(t, "open", ProjectState(queries.Project{}))
12 assert.Equal(t, "closed", ProjectState(queries.Project{Closed: true}))
13}
14
15func TestColorForProjectState(t *testing.T) {
16 assert.Equal(t, "green", ColorForProjectState(queries.Project{}))

Callers

nothing calls this directly

Calls 2

ProjectStateFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected