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

Function TestFileTreeSelectLayer

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

Source from the content-addressed store, hash-verified

190}
191
192func TestFileTreeSelectLayer(t *testing.T) {
193 vm := initializeTestViewModel(t)
194
195 width, height := 100, 100
196 vm.Setup(0, height)
197 vm.ShowAttributes = true
198
199 // collapse /bin
200 err := vm.ToggleCollapse(nil)
201 checkError(t, err, "unable to collapse /bin")
202
203 // select the next layer, compareMode = layer
204 err = vm.SetTreeByLayer(0, 0, 1, 1)
205 if err != nil {
206 t.Errorf("unable to SetTreeByLayer: %v", err)
207 }
208 runTestCase(t, vm, width, height, nil)
209}
210
211func TestFileShowAggregateChanges(t *testing.T) {
212 vm := initializeTestViewModel(t)

Callers

nothing calls this directly

Calls 6

initializeTestViewModelFunction · 0.85
runTestCaseFunction · 0.85
ToggleCollapseMethod · 0.80
SetTreeByLayerMethod · 0.80
checkErrorFunction · 0.70
SetupMethod · 0.65

Tested by

no test coverage detected