Skip to content

Commit

Permalink
update e2e fixtures
Browse files Browse the repository at this point in the history
These all like improvements. We overly matched on test before, so now
include test framework code which is interesting. And we now detect that
a file is auto generated (the syscalls one)
  • Loading branch information
keegancsmith committed Sep 17, 2024
1 parent 4391028 commit 2db6625
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions internal/e2e/testdata/coverage_data_writer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ github.com/golang/go/src/cmd/cover/func.go
32:// as output the coverage data broken down by function, like this:
hidden 8 more line matches

github.com/golang/go/src/testing/fuzz.go
93: Data []byte
205:// modify the underlying data of the arguments provided by the fuzzing engine.
275: run := func(captureOut io.Writer, e corpusEntry) (ok bool) {
hidden 7 more line matches

github.com/golang/go/src/cmd/cover/html.go
199: Coverage float64
170:type templateData struct {
Expand All @@ -26,12 +32,6 @@ github.com/golang/go/src/internal/fuzz/fuzz.go
908:func (c *coordinator) updateCoverage(newCoverage []byte) int {
hidden 91 more line matches

github.com/golang/go/src/testing/fuzz.go
93: Data []byte
205:// modify the underlying data of the arguments provided by the fuzzing engine.
275: run := func(captureOut io.Writer, e corpusEntry) (ok bool) {
hidden 7 more line matches

github.com/golang/go/src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux.go
227: Data [7]byte
449: Data [8]uint32
Expand Down
10 changes: 5 additions & 5 deletions internal/e2e/testdata/test_server.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ github.com/sourcegraph/sourcegraph-public-snapshot/cmd/gitserver/server/server.g
741:func (s *Server) serverContext() (context.Context, context.CancelFunc) {
hidden 166 more line matches

github.com/sourcegraph/zoekt/cmd/zoekt-sourcegraph-indexserver/main.go
150:type Server struct {
1232:func startServer(conf rootConfig) error {
1309:func newServer(conf rootConfig) (*Server, error) {
hidden 52 more line matches
github.com/sourcegraph/sourcegraph-public-snapshot/cmd/frontend/graphqlbackend/testing.go
46:type Test struct {
79:func RunTest(t *testing.T, test *Test) {
58:func RunTests(t *testing.T, tests []*Test) {
hidden 27 more line matches

hidden 494 more file matches
10 changes: 5 additions & 5 deletions internal/e2e/testdata/time_compare.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ github.com/golang/go/src/go/constant/value.go
1381: re := Compare(x.re, token.EQL, y.re)
hidden 1 more line matches

github.com/golang/go/src/syscall/zsyscall_windows.go
878:func GetSystemTimeAsFileTime(time *Filetime) {
1088:func SetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) {
132: procGetSystemTimeAsFileTime = modkernel32.NewProc("GetSystemTimeAsFileTime")
hidden 19 more line matches
github.com/golang/go/src/cmd/go/internal/gover/gover.go
36:func Compare(x, y string) int {
20:// but at the time this code was written, there was an existing test that used
49: if c := cmp.Compare(vx.kind, vy.kind); c != 0 { // "" < alpha < beta < rc
hidden 4 more line matches

hidden 139 more file matches

0 comments on commit 2db6625

Please sign in to comment.