(t *testing.T)
| 25 | } |
| 26 | |
| 27 | func TestExtractCodeBlocksAutoDetect(t *testing.T) { |
| 28 | input := "```\npackage main\nfunc main() {}\n```" |
| 29 | blocks := extractCodeBlocks(input) |
| 30 | if len(blocks) != 1 || blocks[0].Language != "go" { |
| 31 | t.Error("expected auto-detect go") |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func TestDetectCodeLanguage(t *testing.T) { |
| 36 | cases := map[string]string{ |
nothing calls this directly
no test coverage detected