(t *testing.T)
| 165 | } |
| 166 | |
| 167 | func TestText_ToLower(t *testing.T) { |
| 168 | tests := []struct { |
| 169 | name string |
| 170 | tr Text |
| 171 | want Text |
| 172 | }{ |
| 173 | {"empty", "", ""}, |
| 174 | {"one_lower", "a", "a"}, |
| 175 | {"one_upper", "A", "a"}, |
| 176 | {"two_lower", "ab", "ab"}, |
| 177 | {"two_upper", "AB", "ab"}, |
| 178 | } |
| 179 | for _, tt := range tests { |
| 180 | t.Run(tt.name, func(t *testing.T) { |
| 181 | if got := tt.tr.ToLower(); got != tt.want { |
| 182 | t.Errorf("Text.ToLower() = %v, want %v", got, tt.want) |
| 183 | } |
| 184 | }) |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | func TestText_ToUpper(t *testing.T) { |
| 189 | type args struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…