aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/cover/heatmap_test.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-10-01 18:13:23 +0200
committerTaras Madan <tarasmadan@google.com>2024-10-02 09:40:02 +0000
commitb384c770f1783ef8d82a52ab62f24b1e8365dde7 (patch)
treecb5b017f7458339a29fb4da976a93bc430c89465 /pkg/cover/heatmap_test.go
parente6185ff22b3ea7f1e80c8f931fbc21802df71402 (diff)
pkg/cover: render file links
Diffstat (limited to 'pkg/cover/heatmap_test.go')
-rw-r--r--pkg/cover/heatmap_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/cover/heatmap_test.go b/pkg/cover/heatmap_test.go
index 5739d2e9c..d872e31d1 100644
--- a/pkg/cover/heatmap_test.go
+++ b/pkg/cover/heatmap_test.go
@@ -53,7 +53,7 @@ func TestFilesCoverageToTemplateData(t *testing.T) {
"Instrumented:\t1 blocks\nCovered:\t1 blocks",
},
FileCoverageLink: []string{
- "/upstream/graph/coverage/file?dateto=2024-07-01&period=day&commit=commit1&filepath=file1"},
+ "/graph/coverage/file?dateto=2024-07-01&period=day&commit=commit1&filepath=file1"},
},
},
Name: "",
@@ -103,8 +103,8 @@ func TestFilesCoverageToTemplateData(t *testing.T) {
"Instrumented:\t0 blocks\nCovered:\t0 blocks",
},
FileCoverageLink: []string{
- "/upstream/graph/coverage/file?dateto=2024-07-01&period=day&commit=commit1&filepath=dir/file1",
- "/upstream/graph/coverage/file?dateto=2024-07-02&period=day&commit=commit2&filepath=dir/file1"},
+ "/graph/coverage/file?dateto=2024-07-01&period=day&commit=commit1&filepath=dir/file1",
+ "/graph/coverage/file?dateto=2024-07-02&period=day&commit=commit2&filepath=dir/file1"},
},
{
Items: []*templateHeatmapRow{},
@@ -118,8 +118,8 @@ func TestFilesCoverageToTemplateData(t *testing.T) {
"Instrumented:\t1 blocks\nCovered:\t0 blocks",
},
FileCoverageLink: []string{
- "/upstream/graph/coverage/file?dateto=2024-07-01&period=day&commit=commit1&filepath=dir/file2",
- "/upstream/graph/coverage/file?dateto=2024-07-02&period=day&commit=commit2&filepath=dir/file2"},
+ "/graph/coverage/file?dateto=2024-07-01&period=day&commit=commit1&filepath=dir/file2",
+ "/graph/coverage/file?dateto=2024-07-02&period=day&commit=commit2&filepath=dir/file2"},
},
},
Name: "dir",