(t *testing.T)
| 22 | } |
| 23 | |
| 24 | func 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 | |
| 37 | func TestExitStatus(t *testing.T) { |
| 38 | status := unix.WaitStatus(0) |
nothing calls this directly
no test coverage detected
searching dependent graphs…