MCPcopy
hub / github.com/cli/cli / sampleCategories

Function sampleCategories

pkg/cmd/discussion/list/list_test.go:683–689  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

681}
682
683func sampleCategories() []client.DiscussionCategory {
684 return []client.DiscussionCategory{
685 {ID: "CAT1", Name: "General", Slug: "general", IsAnswerable: true},
686 {ID: "CAT2", Name: "Ideas", Slug: "ideas", IsAnswerable: false},
687 {ID: "CAT3", Name: "Show and tell", Slug: "show-and-tell", IsAnswerable: false},
688 }
689}
690
691func TestToFilterState(t *testing.T) {
692 tests := []struct {

Callers 1

TestListRunFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected