MCPcopy Create free account
hub / github.com/commitdev/zero / TestAvailableLabels

Function TestAvailableLabels

internal/registry/registry_test.go:10–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestAvailableLabels(t *testing.T) {
11 reg := testRegistry()
12
13 t.Run("should be same order as declared", func(t *testing.T) {
14 labels := registry.AvailableLabels(reg)
15 assert.Equal(t, labels, []string{
16 "EKS + Go + React + Gatsby",
17 "foo",
18 "bar",
19 "lorem",
20 "ipsum",
21 "Custom",
22 })
23 })
24}
25
26func TestGetModulesByName(t *testing.T) {
27 reg := testRegistry()

Callers

nothing calls this directly

Calls 2

AvailableLabelsFunction · 0.92
testRegistryFunction · 0.85

Tested by

no test coverage detected