MCPcopy
hub / github.com/pterm/pterm / TestPrefixPrinter_WithScope

Function TestPrefixPrinter_WithScope

prefix_printer_test.go:205–217  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

203}
204
205func TestPrefixPrinter_WithScope(t *testing.T) {
206 for _, p := range prefixPrinters {
207 t.Run("", func(t *testing.T) {
208 s := pterm.Scope{
209 Text: "test",
210 Style: pterm.NewStyle(pterm.FgRed, pterm.BgBlue, pterm.Bold),
211 }
212 p2 := p.WithScope(s)
213
214 testza.AssertEqual(t, s, p2.Scope)
215 })
216 }
217}
218
219func Test_checkFatal(t *testing.T) {
220 for _, p := range prefixPrinters {

Callers

nothing calls this directly

Calls 2

NewStyleFunction · 0.92
WithScopeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…