MCPcopy Create free account
hub / github.com/basecamp/hey-cli / TestBoxAdditionalNames

Function TestBoxAdditionalNames

tests/smoke/boxes_test.go:138–152  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

136}
137
138func TestBoxAdditionalNames(t *testing.T) {
139 names := []string{"asidebox", "laterbox", "bubblebox"}
140 for _, name := range names {
141 t.Run(name, func(t *testing.T) {
142 resp := heyJSON(t, "box", name)
143 type BoxResponse struct {
144 Kind string `json:"kind"`
145 }
146 data := dataAs[BoxResponse](t, resp)
147 if data.Kind == "" {
148 t.Errorf("expected non-empty kind for box %s", name)
149 }
150 })
151 }
152}
153
154func TestBoxAll(t *testing.T) {
155 resp := heyJSON(t, "box", "imbox", "--all")

Callers

nothing calls this directly

Calls 1

heyJSONFunction · 0.85

Tested by

no test coverage detected