(t *testing.T)
| 558 | } |
| 559 | |
| 560 | func 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 | |
| 574 | func TestIsIncludeExtWildcard(t *testing.T) { |
| 575 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected
searching dependent graphs…