(t *testing.T)
| 54 | } |
| 55 | |
| 56 | func 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 | } |
nothing calls this directly
no test coverage detected