MCPcopy Create free account
hub / github.com/atripati/ark / TestExtractCodeBlocksMultiple

Function TestExtractCodeBlocksMultiple

pkg/runtime/verify_test.go:19–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17}
18
19func TestExtractCodeBlocksMultiple(t *testing.T) {
20 input := "```python\ndef hello(): pass\n```\n\n```go\nfunc main() {}\n```"
21 blocks := extractCodeBlocks(input)
22 if len(blocks) != 2 {
23 t.Fatalf("expected 2 blocks, got %d", len(blocks))
24 }
25}
26
27func TestExtractCodeBlocksAutoDetect(t *testing.T) {
28 input := "```\npackage main\nfunc main() {}\n```"

Callers

nothing calls this directly

Calls 1

extractCodeBlocksFunction · 0.85

Tested by

no test coverage detected