MCPcopy Index your code
hub / github.com/rilldata/rill / TestGetWSLWarningMessage

Function TestGetWSLWarningMessage

cli/pkg/envdetect/envdetect_test.go:56–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

54}
55
56func TestGetWSLWarningMessage(t *testing.T) {
57 message := GetWSLWarningMessage()
58
59 // Check that the message contains expected keywords
60 mustContainAll := []string{"WARNING", "Windows partition", "WSL"}
61 for _, keyword := range mustContainAll {
62 if !strings.Contains(message, keyword) {
63 t.Errorf("Warning message should contain '%s', got: %s", keyword, message)
64 }
65 }
66
67 // Must mention file system conflicts
68 if !strings.Contains(message, "file system conflicts") {
69 t.Errorf("Warning message should mention 'file system conflicts', got: %s", message)
70 }
71}

Callers

nothing calls this directly

Calls 3

GetWSLWarningMessageFunction · 0.85
ContainsMethod · 0.80
ErrorfMethod · 0.65

Tested by

no test coverage detected