Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pkg/ddc/alluxio/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ import (
"testing"
)

// TestParseReportSummary tests the parseReportSummary method of AlluxioEngine.
// It verifies that the method correctly parses the Alluxio report summary string
// and extracts the cache capacity and cached size information.
//
// The test case includes:
// - A mock Alluxio report summary string (mockAlluxioReportSummaryForParseReport)
// - Expected cacheStates output with cacheCapacity and cached values
//
// The test compares the parsed output with expected values and reports any discrepancies.
// This ensures the parsing logic handles the Alluxio report summary format correctly.
func TestParseReportSummary(t *testing.T) {
testCases := map[string]struct {
summary string
Expand Down
Loading