MCPcopy
hub / github.com/pterm/pterm / TestSprintf

Function TestSprintf

print_test.go:23–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestSprintf(t *testing.T) {
24 for _, randomString := range internal.RandomStrings {
25 testza.AssertEqual(t, randomString, pterm.Sprintf("%s", randomString))
26 }
27 testza.AssertEqual(t, "Hello, World!", pterm.Sprintf("Hello, %s!", "World"))
28}
29
30func TestSprintfln(t *testing.T) {
31 for _, randomString := range internal.RandomStrings {

Callers

nothing calls this directly

Calls 1

SprintfFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…