(t *testing.T)
| 123 | } |
| 124 | |
| 125 | func TestSourceMapCacheGetMissing(t *testing.T) { |
| 126 | logger := &testLogger{} |
| 127 | cache, err := NewSourceMapCache(logger) |
| 128 | if err != nil { |
| 129 | t.Fatalf("NewSourceMapCache failed: %v", err) |
| 130 | } |
| 131 | |
| 132 | // Try to get a non-existent source map |
| 133 | _, err = cache.Get("/nonexistent/path/file.go") |
| 134 | if err == nil { |
| 135 | t.Error("Expected error for non-existent file") |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | func TestSourceMapCacheGetSuccess(t *testing.T) { |
| 140 | workspaceRoot, cleanup := setupTestWorkspace(t) |
nothing calls this directly
no test coverage detected