MCPcopy
hub / github.com/charmbracelet/huh / typeText

Function typeText

huh_test.go:1242–1248  ·  view source on GitHub ↗
(m T, s string)

Source from the content-addressed store, hash-verified

1240}
1241
1242func typeText[T Model](m T, s string) T {
1243 var tm Model = m
1244 for _, r := range s {
1245 tm, _ = tm.Update(keypress(r))
1246 }
1247 return tm.(T)
1248}
1249
1250func TestAccessibleForm(t *testing.T) {
1251 var out bytes.Buffer

Callers 5

TestFormFunction · 0.85
TestInputFunction · 0.85
TestInlineInputFunction · 0.85
TestTextFunction · 0.85

Calls 2

UpdateMethod · 0.95
keypressFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…