(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestIsStringEmpty(t *testing.T) { |
| 46 | tests := []struct { |
| 47 | s string |
| 48 | expected bool |
| 49 | }{ |
| 50 | {"", true}, |
| 51 | {" ", true}, |
| 52 | {"\t\n", true}, |
| 53 | {"a", false}, |
| 54 | {" a ", false}, |
| 55 | } |
| 56 | for _, tt := range tests { |
| 57 | if got := IsStringEmpty(tt.s); got != tt.expected { |
| 58 | t.Errorf("IsStringEmpty(%q) = %v, want %v", tt.s, got, tt.expected) |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | func TestCutString(t *testing.T) { |
| 64 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…