(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func 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 | |
| 27 | func TestExtractCodeBlocksAutoDetect(t *testing.T) { |
| 28 | input := "```\npackage main\nfunc main() {}\n```" |
nothing calls this directly
no test coverage detected