INNER CODE UNIT · Go

createSqliteAnalyzer

dundee/gdu · report/export_storage_test.go:63

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)
}

func TestAnalyzePathWithDepthFromStorage(t *testing.T) {
	report := assertStorageExportMatchesPlain(t, analyze.CreateStoredAnalyzer(t.TempDir()), 1, false)
	assert.Contains(t, report, `"name":"nested"`)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…