aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/coverage_test.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-01-29 10:06:00 +0100
committerTaras Madan <tarasmadan@google.com>2025-01-31 14:06:26 +0000
commitaa47157c8ec3df5a6d16e3866b095c8f91026465 (patch)
treeba6846ab62f0863d4e1b3294577563e4fffd35a3 /dashboard/app/coverage_test.go
parent4c6ac32f33aa00c680c8f4656d1fbf2887f390f1 (diff)
dashboard/app: change coverage links
It will simplify the json API links.
Diffstat (limited to 'dashboard/app/coverage_test.go')
-rw-r--r--dashboard/app/coverage_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/dashboard/app/coverage_test.go b/dashboard/app/coverage_test.go
index ef8321c9f..c4945ab09 100644
--- a/dashboard/app/coverage_test.go
+++ b/dashboard/app/coverage_test.go
@@ -29,7 +29,7 @@ func TestFileCoverage(t *testing.T) {
name: "empty db",
covDB: func(t *testing.T) spannerclient.SpannerClient { return emptyCoverageDBFixture(t, 1) },
fileProv: func(t *testing.T) covermerger.FileVersProvider { return staticFileProvider(t) },
- url: "/test2/graph/coverage/file?dateto=2025-01-31&period=month" +
+ url: "/test2/coverage/file?dateto=2025-01-31&period=month" +
"&commit=c0e75905caf368e19aab585d20151500e750de89&filepath=virt/kvm/kvm_main.c",
wantInRes: []string{"1 line1"},
},
@@ -37,7 +37,7 @@ func TestFileCoverage(t *testing.T) {
name: "regular db",
covDB: func(t *testing.T) spannerclient.SpannerClient { return coverageDBFixture(t) },
fileProv: func(t *testing.T) covermerger.FileVersProvider { return staticFileProvider(t) },
- url: "/test2/graph/coverage/file?dateto=2025-01-31&period=month" +
+ url: "/test2/coverage/file?dateto=2025-01-31&period=month" +
"&commit=c0e75905caf368e19aab585d20151500e750de89&filepath=virt/kvm/kvm_main.c",
wantInRes: []string{
"4 1 line1",
@@ -48,7 +48,7 @@ func TestFileCoverage(t *testing.T) {
name: "multimanager db",
covDB: func(t *testing.T) spannerclient.SpannerClient { return multiManagerCovDBFixture(t) },
fileProv: func(t *testing.T) covermerger.FileVersProvider { return staticFileProvider(t) },
- url: "/test2/graph/coverage/file?dateto=2025-01-31&period=month" +
+ url: "/test2/coverage/file?dateto=2025-01-31&period=month" +
"&commit=c0e75905caf368e19aab585d20151500e750de89&filepath=virt/kvm/kvm_main.c" +
"&manager=special-cc-manager&unique-only=1",
wantInRes: []string{