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

Function TestExtractCodeBlocksAutoDetect

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

Source from the content-addressed store, hash-verified

25}
26
27func 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
35func TestDetectCodeLanguage(t *testing.T) {
36 cases := map[string]string{

Callers

nothing calls this directly

Calls 2

extractCodeBlocksFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected