MCPcopy Index your code
hub / github.com/bootdotdev/bootdev / TestExtractTmdlBlockHandlesTabIndentation

Function TestExtractTmdlBlockHandlesTabIndentation

checks/tmdl_test.go:45–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

43}
44
45func TestExtractTmdlBlockHandlesTabIndentation(t *testing.T) {
46 input := "item\n\tchild\n\t\tgrandchild\n\tsibling\nnext"
47
48 got := ExtractTmdlBlock(input, "child")
49 want := "\tchild\n\t\tgrandchild"
50 if got != want {
51 t.Fatalf("ExtractTmdlBlock() = %q, want %q", got, want)
52 }
53}

Callers

nothing calls this directly

Calls 1

ExtractTmdlBlockFunction · 0.85

Tested by

no test coverage detected