(t *testing.T)
| 25 | ) |
| 26 | |
| 27 | func TestValidLabels(t *testing.T) { |
| 28 | shortStr := "s" |
| 29 | longStr := strings.Repeat("s", maxSize-1) |
| 30 | |
| 31 | for key, value := range map[string]string{ |
| 32 | "some": "value", |
| 33 | shortStr: longStr, |
| 34 | } { |
| 35 | if err := Validate(key, value); err != nil { |
| 36 | t.Fatalf("unexpected error: %v != nil", err) |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | func TestInvalidLabels(t *testing.T) { |
| 42 | addOneStr := "s" |
nothing calls this directly
no test coverage detected
searching dependent graphs…