MCPcopy
hub / github.com/opencontainers/runc / TestSearchLabels

Function TestSearchLabels

libcontainer/utils/utils_test.go:24–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22}
23
24func TestSearchLabels(t *testing.T) {
25 for _, tt := range labelTest {
26 v, ok := SearchLabels(tt.labels, tt.query)
27 if ok != tt.expOk {
28 t.Errorf("expected ok: %v, got %v", tt.expOk, ok)
29 continue
30 }
31 if v != tt.expVal {
32 t.Errorf("expected value '%s' for query '%s'; got '%s'", tt.expVal, tt.query, v)
33 }
34 }
35}
36
37func TestExitStatus(t *testing.T) {
38 status := unix.WaitStatus(0)

Callers

nothing calls this directly

Calls 1

SearchLabelsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…