INNER CODE UNIT · Go

TestReadFromStorageWithErr

dundee/gdu · report/export_linux_test.go:41

func TestReadFromStorageWithErr(t *testing.T) {
	fin := testdir.CreateTestDir()
	defer fin()

	const storagePath = "/tmp/badger-test3"

	output := bytes.NewBuffer(make([]byte, 10))
	reportOutput := bytes.NewBuffer(make([]byte, 10))

	ui := CreateExportUI(output, reportOutput, false, false, false, 0, 0, false, nil)
	ui.SetIgnoreDirPaths([]string{"/xxx"})
	err := ui.ReadFromStorage(storagePath, "test_dir")

	assert.ErrorContains(t, err, "Key not found")
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…