MCPcopy Create free account
hub / github.com/chanced/caps / TestText_ToLower

Function TestText_ToLower

text/text_test.go:167–186  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

165}
166
167func 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
188func TestText_ToUpper(t *testing.T) {
189 type args struct {

Callers

nothing calls this directly

Calls 1

ToLowerMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…