MCPcopy Index your code
hub / github.com/helm/helm / TestVersionSet

Function TestVersionSet

pkg/chart/common/capabilities_test.go:22–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20)
21
22func TestVersionSet(t *testing.T) {
23 vs := VersionSet{"v1", "apps/v1"}
24 if d := len(vs); d != 2 {
25 t.Errorf("Expected 2 versions, got %d", d)
26 }
27
28 if !vs.Has("apps/v1") {
29 t.Error("Expected to find apps/v1")
30 }
31
32 if vs.Has("Spanish/inquisition") {
33 t.Error("No one expects the Spanish/inquisition")
34 }
35}
36
37func TestDefaultVersionSet(t *testing.T) {
38 if !DefaultVersionSet.Has("v1") {

Callers

nothing calls this directly

Calls 2

HasMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…