MCPcopy Create free account
hub / github.com/conforma/cli / TestIndent

Function TestIndent

acceptance/snaps/indent_test.go:27–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25)
26
27func TestIndent(t *testing.T) {
28 assert.Equal(t, "", Indent("", 0))
29 assert.Equal(t, " ", Indent("", 3))
30 assert.Equal(t, " A", Indent("A", 3))
31 assert.Equal(t, " A\n B", Indent("A\nB", 3))
32 assert.Equal(t, " A\n B", Indent("A\nB\n", 3))
33}

Callers

nothing calls this directly

Calls 1

IndentFunction · 0.85

Tested by

no test coverage detected