INNER CODE UNIT · Go

reportWithoutHeader

dundee/gdu · report/export_storage_test.go:58

func reportWithoutHeader(report string) string {
	_, body, _ := strings.Cut(report, "\n")
	return body
}

func createSqliteAnalyzer(t *testing.T) common.Analyzer {
	t.Helper()
	analyzer, err := analyze.CreateSqliteAnalyzer(filepath.Join(t.TempDir(), "test.sqlite"))
	if err != nil {
		t.Skipf("sqlite storage not available: %v", err)
	}
	return analyzer
}

func TestAnalyzePathWithSummarizeFromStorage(t *testing.T) {
	assertStorageExportMatchesPlain(t, analyze.CreateStoredAnalyzer(t.TempDir()), 0, true)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…