MCPcopy
hub / github.com/wagoodman/dive / TestFileTreeFilterTree

Function TestFileTreeFilterTree

runtime/ui/viewmodel/filetree_test.go:305–318  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

303}
304
305func TestFileTreeFilterTree(t *testing.T) {
306 vm := initializeTestViewModel(t)
307
308 width, height := 100, 1000
309 vm.Setup(0, height)
310 vm.ShowAttributes = true
311
312 regex, err := regexp.Compile("network")
313 if err != nil {
314 t.Errorf("could not create filter regex: %+v", err)
315 }
316
317 runTestCase(t, vm, width, height, regex)
318}
319
320func TestFileTreeHideAddedRemovedModified(t *testing.T) {
321 vm := initializeTestViewModel(t)

Callers

nothing calls this directly

Calls 3

initializeTestViewModelFunction · 0.85
runTestCaseFunction · 0.85
SetupMethod · 0.65

Tested by

no test coverage detected