-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ranking: add test for conc vs golang (#837)
This adds a new test and a new repo to our e2e ranking suite. The idea is to have a query for which two repos (here golang/go and conc) of different freshness compete for the best match.
- Loading branch information
1 parent
da6013d
commit c589118
Showing
3 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
queryString: WaitGroup | ||
query: case_substr:"WaitGroup" | ||
targetRank: 2 | ||
|
||
github.com/golang/go/src/sync/waitgroup.go | ||
23:type WaitGroup struct { | ||
91:func (wg *WaitGroup) Wait() { | ||
13:// A WaitGroup waits for a collection of goroutines to finish. | ||
hidden 13 more line matches | ||
|
||
**github.com/sourcegraph/conc/waitgroup.go** | ||
22:type WaitGroup struct { | ||
10:func NewWaitGroup() *WaitGroup { | ||
38:func (h *WaitGroup) Wait() { | ||
hidden 10 more line matches | ||
|
||
github.com/golang/go/test/fixedbugs/issue19467.dir/mysync.go | ||
9:type WaitGroup struct { | ||
13:func (wg *WaitGroup) Add(x int) { | ||
19:func (wg *WaitGroup) Done() { | ||
|
||
github.com/golang/go/test/fixedbugs/issue44370.dir/a.go | ||
8:type StoppableWaitGroup struct { | ||
16:func NewStoppableWaitGroup() *StoppableWaitGroup { | ||
7:// A StoppableWaitGroup waits for a collection of goroutines to finish. | ||
hidden 3 more line matches | ||
|
||
github.com/golang/go/src/sync/example_test.go | ||
20:func ExampleWaitGroup() { | ||
19:// using a WaitGroup to block until all the fetches are complete. | ||
21: var wg sync.WaitGroup | ||
hidden 1 more line matches | ||
|
||
github.com/sourcegraph/conc/waitgroup_test.go | ||
13:func ExampleWaitGroup() { | ||
42:func TestWaitGroup(t *testing.T) { | ||
29:func ExampleWaitGroup_WaitAndRecover() { | ||
hidden 12 more line matches | ||
|
||
hidden 227 more file matches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
queries: 15 | ||
recall@1: 8 (53%) | ||
recall@5: 10 (67%) | ||
mrr: 0.607506 | ||
queries: 16 | ||
recall@1: 8 (50%) | ||
recall@5: 11 (69%) | ||
mrr: 0.600787 |