MCPcopy
hub / github.com/air-verse/air / TestIsIncludeExt

Function TestIsIncludeExt

runner/util_test.go:560–572  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

558}
559
560func TestIsIncludeExt(t *testing.T) {
561 e := Engine{
562 config: &Config{
563 Build: cfgBuild{
564 IncludeExt: []string{"go", "html"},
565 },
566 },
567 }
568 assert.True(t, e.isIncludeExt("main.go"))
569 assert.True(t, e.isIncludeExt("/path/to/file.html"))
570 assert.False(t, e.isIncludeExt("main.js"))
571 assert.False(t, e.isIncludeExt("file"))
572}
573
574func TestIsIncludeExtWildcard(t *testing.T) {
575 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

isIncludeExtMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…