-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
As of 2638213, getting some failures on just running go test ./...
--- FAIL: TestSnapshots (3.57s)
--- FAIL: TestSnapshots/inlinestruct (0.22s)
--- FAIL: TestSnapshots/inlinestruct/inlinestruct_multivar.go (0.00s)
snapshot_testing.go:77:
--- /Users/varun/Code/scip-go/internal/testdata/snapshots/output/inlinestruct/inlinestruct_multivar.go (obtained)
+++ /Users/varun/Code/scip-go/internal/testdata/snapshots/output/inlinestruct/inlinestruct_multivar.go (expected)
@@ -16,7 +16,7 @@
// ^^^^^^^^^^ definition 0.1.test sg/inlinestruct/emptyMocks.
// documentation ```go
Code func(p Params) (response *HighlightedCode, aborted bool, err error)
-// ^^^^ definition 0.1.test sg/inlinestruct/inline-30:Code.
+// ^^^^ definition 0.1.test sg/inlinestruct/inline-39:Code.
// documentation ```go
// ^ definition local 0
// ^^^^^^ reference 0.1.test sg/inlinestruct/Params#
--- FAIL: TestSnapshots/testdata (0.53s)
--- FAIL: TestSnapshots/testdata/conflicting_test_symbols/sandbox_unsupported.go (0.00s)
snapshot_testing.go:77:
--- /Users/varun/Code/scip-go/internal/testdata/snapshots/output/testdata/conflicting_test_symbols/sandbox_unsupported.go (obtained)
+++ /Users/varun/Code/scip-go/internal/testdata/snapshots/output/testdata/conflicting_test_symbols/sandbox_unsupported.go (expected)
@@ -1 +1,44 @@
+ //go:build !linux
+ // +build !linux
+
+ // From https://github.com/moby/moby/blob/master/libnetwork/osl/sandbox_unsupported.go
+
+ package osl
+// ^^^ definition 0.1.test sg/testdata/conflicting_test_symbols/
+// documentation package osl
+
+ import "errors"
+// ^^^^^^ reference github.com/golang/go/src go1.19 errors/
+
+ var (
+ // ErrNotImplemented is for platforms which don't implement sandbox
+ ErrNotImplemented = errors.New("not implemented")
+// ^^^^^^^^^^^^^^^^^ definition 0.1.test sg/testdata/conflicting_test_symbols/ErrNotImplemented.
+// documentation ```go
+// ^^^^^^ reference github.com/golang/go/src go1.19 errors/
+// ^^^ reference github.com/golang/go/src go1.19 errors/New().
+ )
+
+ // NewSandbox provides a new sandbox instance created in an os specific way
+ // provided a key which uniquely identifies the sandbox
+ func NewSandbox(key string, osCreate, isRestore bool) (*string, error) {
+// ^^^^^^^^^^ definition 0.1.test sg/testdata/conflicting_test_symbols/NewSandbox().
+// documentation ```go
+// documentation NewSandbox provides a new sandbox instance created in an os specific way
+// ^^^ definition local 0
+// ^^^^^^^^ definition local 1
+// ^^^^^^^^^ definition local 2
+ return nil, ErrNotImplemented
+// ^^^^^^^^^^^^^^^^^ reference 0.1.test sg/testdata/conflicting_test_symbols/ErrNotImplemented.
+ }
+
+ // GenerateKey generates a sandbox key based on the passed
+ // container id.
+ func GenerateKey(containerID string) string {
+// ^^^^^^^^^^^ definition 0.1.test sg/testdata/conflicting_test_symbols/GenerateKey().
+// documentation ```go
+// documentation GenerateKey generates a sandbox key based on the passed
+// ^^^^^^^^^^^ definition local 3
+ return ""
+ }
+
FAIL
FAIL github.com/sourcegraph/scip-go/internal/index 3.778s
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels