fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

fix tests (#671)

Relates to #667.

This updates the expected scores, now that we have removed the repetition boost.

author
Stefan Hengl
committer
GitHub
date (Oct 23, 2023, 12:58 PM +0200) commit 5bbf05d4 parent ca7ee51e
+6 -6
+6 -6
build/e2e_test.go
··· 1193 1193 { 1194 1194 name: "score with no document ranks", 1195 1195 // 5500 (partial symbol at boundary) + 1000 (Java class) + 500 (word match) + 10 (file order) 1196 - wantScore: 7012.00, 1196 + wantScore: 7010.00, 1197 1197 }, 1198 1198 { 1199 1199 name: "score with document ranks", 1200 1200 documentRank: 0.8, 1201 1201 // 5500 (partial symbol at boundary) + 1000 (Java class) + 500 (word match) + 225 (file rank) + 10 (file order) 1202 - wantScore: 7237.00, 1202 + wantScore: 7235.00, 1203 1203 }, 1204 1204 { 1205 1205 name: "score with custom document ranks weight", 1206 1206 documentRank: 0.8, 1207 1207 documentRanksWeight: 1000.0, 1208 1208 // 5500 (partial symbol at boundary) + 1000 (Java class) + 500 (word match) + 25.00 (file rank) + 10 (file order) 1209 - wantScore: 7037.00, 1209 + wantScore: 7035.00, 1210 1210 }, 1211 1211 } 1212 1212 ··· 1281 1281 { 1282 1282 name: "no shard rank", 1283 1283 // 5500 (partial symbol at boundary) + 1000 (Java class) + 500 (word match) + 10 (file order) 1284 - wantScore: 7012.00, 1284 + wantScore: 7010.00, 1285 1285 }, 1286 1286 { 1287 1287 name: "medium shard rank", 1288 1288 repoRank: 30000, 1289 1289 // 5500 (partial symbol at boundary) + 1000 (Java class) + 500 (word match) + 10 (file order) + 9.16 (repo rank) 1290 - wantScore: 7021.16, 1290 + wantScore: 7019.16, 1291 1291 }, 1292 1292 { 1293 1293 name: "high shard rank", 1294 1294 repoRank: 60000, 1295 1295 // 5500 (partial symbol at boundary) + 1000 (Java class) + 500 (word match) + 10 (file order) + 18.31 (repo rank) 1296 - wantScore: 7030.31, 1296 + wantScore: 7028.31, 1297 1297 }, 1298 1298 } 1299 1299