From 118de62ae2ece05c9577ba1289d5dca0a6f0bc41 Mon Sep 17 00:00:00 2001 From: jupblb Date: Thu, 19 Feb 2026 10:41:22 +0100 Subject: [PATCH] Use valid module paths in test data and remove equality fast path Replace synthetic sg/ module paths in test data with real github.com/sourcegraph/scip-go/internal/testdata/ paths so that vcs.RepoRootForImportPath can resolve them. This removes the need for the equality fast path in sameRepoRoot. --- internal/index/scip_test.go | 8 +- internal/loader/loader.go | 3 - .../testdata/snapshots/input/embedded/go.mod | 2 +- .../input/embedded/internal/nested.go | 2 +- .../snapshots/input/generallyeric/go.mod | 2 +- .../testdata/snapshots/input/impls/go.mod | 2 +- .../testdata/snapshots/input/initial/go.mod | 2 +- .../snapshots/input/inlinestruct/go.mod | 2 +- .../snapshots/input/replace-directives/go.mod | 2 +- .../snapshots/input/sharedtestmodule/go.mod | 2 +- .../testdata/snapshots/input/switches/go.mod | 2 +- .../testdata/snapshots/input/testdata/data.go | 2 +- .../testdata/snapshots/input/testdata/go.mod | 2 +- .../snapshots/input/testdata/typealias.go | 2 +- .../input/testspecial/foo_other_test.go | 2 +- .../snapshots/input/testspecial/go.mod | 2 +- .../testdata/snapshots/output/alias/main.go | 26 +-- .../snapshots/output/embedded/embedded.go | 60 +++---- .../output/embedded/internal/nested.go | 24 +-- .../snapshots/output/embedded/nested.go | 20 +-- .../snapshots/output/embedded/something.go | 26 +-- .../output/generallyeric/generallyeric.go | 8 +- .../output/generallyeric/new_operators.go | 26 +-- .../snapshots/output/generallyeric/person.go | 42 ++--- .../testdata/snapshots/output/impls/impls.go | 60 +++---- .../snapshots/output/impls/remote_impls.go | 44 ++--- .../snapshots/output/initial/builtin_types.go | 8 +- .../snapshots/output/initial/child_symbols.go | 130 +++++++------- .../output/initial/func_declarations.go | 16 +- .../output/initial/methods_and_receivers.go | 28 +-- .../output/initial/package_definition.go | 2 +- .../snapshots/output/initial/rangefunc.go | 8 +- .../output/initial/toplevel_decls.go | 18 +- .../output/initial/type_declarations.go | 46 ++--- .../snapshots/output/initial/type_hovers.go | 6 +- .../output/inlinestruct/inlinestruct.go | 34 ++-- .../output/inlinestruct/inlinestruct_func.go | 10 +- .../inlinestruct/inlinestruct_genericindex.go | 36 ++-- .../inlinestruct/inlinestruct_interface.go | 26 +-- .../output/inlinestruct/inlinestruct_map.go | 4 +- .../inlinestruct/inlinestruct_multivar.go | 32 ++-- .../output/package-documentation/primary.go | 8 +- .../output/package-documentation/secondary.go | 8 +- .../replace-directives/replace_directives.go | 8 +- .../cmd/gitserver/server/cleanup.go | 8 +- .../cmd/gitserver/server/cleanup_test.go | 10 +- .../cmd/gitserver/server/server.go | 8 +- .../cmd/gitserver/server/server_test.go | 14 +- .../snapshots/output/switches/switches.go | 24 +-- .../output/testdata/anonymous_structs.go | 74 ++++---- .../testdata/cmd/minimal_main/minimal_main.go | 16 +- .../sandbox_unsupported_test.go | 18 +- .../snapshots/output/testdata/data.go | 80 ++++----- .../output/testdata/duplicate_path_id/main.go | 34 ++-- .../output/testdata/duplicate_path_id/two.go | 8 +- .../output/testdata/external_composite.go | 8 +- .../output/testdata/implementations.go | 166 +++++++++--------- .../testdata/implementations_embedded.go | 12 +- .../testdata/implementations_methods.go | 60 +++---- .../output/testdata/implementations_remote.go | 34 ++-- .../output/testdata/internal/secret/doc.go | 2 +- .../output/testdata/internal/secret/secret.go | 8 +- .../snapshots/output/testdata/named_import.go | 8 +- .../snapshots/output/testdata/parallel.go | 14 +- .../snapshots/output/testdata/typealias.go | 16 +- .../snapshots/output/testdata/typeswitch.go | 8 +- .../snapshots/output/testspecial/foo.go | 8 +- .../output/testspecial/foo_other_test.go | 16 +- .../snapshots/output/testspecial/foo_test.go | 10 +- 69 files changed, 734 insertions(+), 733 deletions(-) diff --git a/internal/index/scip_test.go b/internal/index/scip_test.go index b3dd7aa..9e1c4da 100644 --- a/internal/index/scip_test.go +++ b/internal/index/scip_test.go @@ -17,6 +17,8 @@ import ( "google.golang.org/protobuf/proto" ) +const testModulePrefix = "github.com/sourcegraph/scip-go/internal/testdata/" + // Use "update-snapshots" to update snapshots var filter = flag.String("filter", "", "filenames to filter by") @@ -47,7 +49,7 @@ func TestSnapshots(t *testing.T) { err := index.Index(writer, config.IndexOpts{ ModuleRoot: inputDirectory, ModuleVersion: "0.1.test", - ModulePath: "sg/" + filepath.Base(inputDirectory), + ModulePath: testModulePrefix + filepath.Base(inputDirectory), GoStdlibVersion: "go1.22", }) if err != nil { @@ -58,7 +60,9 @@ func TestSnapshots(t *testing.T) { OnError: func(err error) error { return err }, IncludeScheme: func(scheme string) bool { return scheme == "local" }, IncludePackageManager: func(_ string) bool { return false }, - IncludePackageName: func(name string) bool { return !strings.HasPrefix(name, "sg/") }, + IncludePackageName: func(name string) bool { + return !strings.HasPrefix(name, testModulePrefix) + }, IncludePackageVersion: func(_ string) bool { return true }, IncludeDescriptor: func(_ string) bool { return true }, IncludeRawDescriptor: func(descriptor *scip.Descriptor) bool { return true }, diff --git a/internal/loader/loader.go b/internal/loader/loader.go index 8ae1a96..7f2059b 100644 --- a/internal/loader/loader.go +++ b/internal/loader/loader.go @@ -289,9 +289,6 @@ func normalizePackage(opts *config.IndexOpts, pkg *packages.Package) *packages.P // sameRepoRoot returns true if a and b resolve to the same VCS repository root. // This is used to detect sibling modules in a monorepo. func sameRepoRoot(pathA, pathB string) bool { - if pathA == pathB { - return true - } rootA, errA := vcs.RepoRootForImportPath(pathA, false) rootB, errB := vcs.RepoRootForImportPath(pathB, false) if errA != nil || errB != nil { diff --git a/internal/testdata/snapshots/input/embedded/go.mod b/internal/testdata/snapshots/input/embedded/go.mod index f619b3f..327ebd5 100644 --- a/internal/testdata/snapshots/input/embedded/go.mod +++ b/internal/testdata/snapshots/input/embedded/go.mod @@ -1,3 +1,3 @@ -module sg/embedded +module github.com/sourcegraph/scip-go/internal/testdata/embedded go 1.19 diff --git a/internal/testdata/snapshots/input/embedded/internal/nested.go b/internal/testdata/snapshots/input/embedded/internal/nested.go index dd14365..afe5ccd 100644 --- a/internal/testdata/snapshots/input/embedded/internal/nested.go +++ b/internal/testdata/snapshots/input/embedded/internal/nested.go @@ -2,7 +2,7 @@ package nested_internal import ( "fmt" - "sg/embedded" + "github.com/sourcegraph/scip-go/internal/testdata/embedded" ) func Something(recent embedded.RecentCommittersResults) { diff --git a/internal/testdata/snapshots/input/generallyeric/go.mod b/internal/testdata/snapshots/input/generallyeric/go.mod index 17b02b4..ccf058b 100644 --- a/internal/testdata/snapshots/input/generallyeric/go.mod +++ b/internal/testdata/snapshots/input/generallyeric/go.mod @@ -1,4 +1,4 @@ -module sg/generallyeric +module github.com/sourcegraph/scip-go/internal/testdata/generallyeric go 1.19 diff --git a/internal/testdata/snapshots/input/impls/go.mod b/internal/testdata/snapshots/input/impls/go.mod index 1968e46..9b8f976 100644 --- a/internal/testdata/snapshots/input/impls/go.mod +++ b/internal/testdata/snapshots/input/impls/go.mod @@ -1,3 +1,3 @@ -module sg/impls +module github.com/sourcegraph/scip-go/internal/testdata/impls go 1.19 diff --git a/internal/testdata/snapshots/input/initial/go.mod b/internal/testdata/snapshots/input/initial/go.mod index d95578f..97bc2cb 100644 --- a/internal/testdata/snapshots/input/initial/go.mod +++ b/internal/testdata/snapshots/input/initial/go.mod @@ -1,3 +1,3 @@ -module sg/initial +module github.com/sourcegraph/scip-go/internal/testdata/initial go 1.23 diff --git a/internal/testdata/snapshots/input/inlinestruct/go.mod b/internal/testdata/snapshots/input/inlinestruct/go.mod index db877c0..afdfcfb 100644 --- a/internal/testdata/snapshots/input/inlinestruct/go.mod +++ b/internal/testdata/snapshots/input/inlinestruct/go.mod @@ -1,3 +1,3 @@ -module sg/inlinestruct +module github.com/sourcegraph/scip-go/internal/testdata/inlinestruct go 1.19 diff --git a/internal/testdata/snapshots/input/replace-directives/go.mod b/internal/testdata/snapshots/input/replace-directives/go.mod index c412a45..91174e8 100644 --- a/internal/testdata/snapshots/input/replace-directives/go.mod +++ b/internal/testdata/snapshots/input/replace-directives/go.mod @@ -1,4 +1,4 @@ -module sg/replace-directives +module github.com/sourcegraph/scip-go/internal/testdata/replace-directives go 1.19 diff --git a/internal/testdata/snapshots/input/sharedtestmodule/go.mod b/internal/testdata/snapshots/input/sharedtestmodule/go.mod index 30f5dfc..9b63f31 100644 --- a/internal/testdata/snapshots/input/sharedtestmodule/go.mod +++ b/internal/testdata/snapshots/input/sharedtestmodule/go.mod @@ -1,3 +1,3 @@ -module sg/sharedtestmodule +module github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule go 1.19 diff --git a/internal/testdata/snapshots/input/switches/go.mod b/internal/testdata/snapshots/input/switches/go.mod index d8ea3f7..14c1a69 100644 --- a/internal/testdata/snapshots/input/switches/go.mod +++ b/internal/testdata/snapshots/input/switches/go.mod @@ -1,3 +1,3 @@ -module sg/switches +module github.com/sourcegraph/scip-go/internal/testdata/switches go 1.19 diff --git a/internal/testdata/snapshots/input/testdata/data.go b/internal/testdata/snapshots/input/testdata/data.go index 7224014..b57b1cf 100644 --- a/internal/testdata/snapshots/input/testdata/data.go +++ b/internal/testdata/snapshots/input/testdata/data.go @@ -3,7 +3,7 @@ package testdata import ( "context" - "sg/testdata/internal/secret" + "github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret" ) // TestInterface is an interface used for testing. diff --git a/internal/testdata/snapshots/input/testdata/go.mod b/internal/testdata/snapshots/input/testdata/go.mod index fc35bf7..af561b6 100644 --- a/internal/testdata/snapshots/input/testdata/go.mod +++ b/internal/testdata/snapshots/input/testdata/go.mod @@ -1,3 +1,3 @@ -module sg/testdata +module github.com/sourcegraph/scip-go/internal/testdata/testdata go 1.19 diff --git a/internal/testdata/snapshots/input/testdata/typealias.go b/internal/testdata/snapshots/input/testdata/typealias.go index a8f172e..9afb28c 100644 --- a/internal/testdata/snapshots/input/testdata/typealias.go +++ b/internal/testdata/snapshots/input/testdata/typealias.go @@ -1,7 +1,7 @@ package testdata import ( - "sg/testdata/internal/secret" + "github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret" ) // Type aliased doc diff --git a/internal/testdata/snapshots/input/testspecial/foo_other_test.go b/internal/testdata/snapshots/input/testspecial/foo_other_test.go index 9fa6d3e..28c7b54 100644 --- a/internal/testdata/snapshots/input/testspecial/foo_other_test.go +++ b/internal/testdata/snapshots/input/testspecial/foo_other_test.go @@ -3,7 +3,7 @@ package testspecial_test import ( "testing" - "sg/testspecial" + "github.com/sourcegraph/scip-go/internal/testdata/testspecial" ) func TestFoo_Blackbox(*testing.T) { testspecial.Foo() } diff --git a/internal/testdata/snapshots/input/testspecial/go.mod b/internal/testdata/snapshots/input/testspecial/go.mod index d5f2dab..cfd7e5c 100644 --- a/internal/testdata/snapshots/input/testspecial/go.mod +++ b/internal/testdata/snapshots/input/testspecial/go.mod @@ -1,3 +1,3 @@ -module sg/testspecial +module github.com/sourcegraph/scip-go/internal/testdata/testspecial go 1.19 diff --git a/internal/testdata/snapshots/output/alias/main.go b/internal/testdata/snapshots/output/alias/main.go index 7f3971d..5b0d722 100755 --- a/internal/testdata/snapshots/output/alias/main.go +++ b/internal/testdata/snapshots/output/alias/main.go @@ -1,5 +1,5 @@ package main -// ^^^^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/ +// ^^^^ definition github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/ // documentation // > package main @@ -7,7 +7,7 @@ // Copied from https://github.com/golang/go/issues/68877#issuecomment-2290000187 type ( T struct{} -// ^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/T# +// ^ definition github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/T# // documentation // > ```go // > type T struct @@ -20,7 +20,7 @@ // > struct{} // > ``` U = T -// ^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/U# +// ^ definition github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/U# // documentation // > ```go // > type U = T @@ -32,9 +32,9 @@ // > ```go // > struct{} // > ``` -// ^ reference github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/T# +// ^ reference github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/T# V = U -// ^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/V# +// ^ definition github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/V# // documentation // > ```go // > type V = U @@ -46,9 +46,9 @@ // > ```go // > struct{} // > ``` -// ^ reference github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/U# +// ^ reference github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/U# S U -// ^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/S# +// ^ definition github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/S# // documentation // > ```go // > type S struct @@ -60,9 +60,9 @@ // > ```go // > struct{} // > ``` -// ^ reference github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/U# +// ^ reference github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/U# Z int32 -// ^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/Z# +// ^ definition github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/Z# // documentation // > Check that we don't panic // > Copied from https://github.com/golang/go/issues/68877#issuecomment-2290000187 @@ -72,14 +72,14 @@ // > ``` ) -//⌄ enclosing_range_start github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/f(). +//⌄ enclosing_range_start github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/f(). func f(u U) {} -// ^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/f(). +// ^ definition github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/f(). // documentation // > ```go // > func f(u U) // > ``` // ^ definition local 0 -// ^ reference github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/U# -// ⌃ enclosing_range_end github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/f(). +// ^ reference github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/U# +// ⌃ enclosing_range_end github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/f(). diff --git a/internal/testdata/snapshots/output/embedded/embedded.go b/internal/testdata/snapshots/output/embedded/embedded.go index b8a9766..d1abc2a 100755 --- a/internal/testdata/snapshots/output/embedded/embedded.go +++ b/internal/testdata/snapshots/output/embedded/embedded.go @@ -1,5 +1,5 @@ package embedded -// ^^^^^^^^ reference 0.1.test `sg/embedded`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/ import ( "fmt" @@ -9,7 +9,7 @@ ) type osExecCommand struct { -// ^^^^^^^^^^^^^ definition 0.1.test `sg/embedded`/osExecCommand# +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/osExecCommand# // documentation // > ```go // > type osExecCommand struct @@ -25,7 +25,7 @@ // relationship github.com/golang/go/src go1.22 runtime/stringer# implementation *exec.Cmd // ^^^^ reference github.com/golang/go/src go1.22 `os/exec`/ -// ^^^ definition 0.1.test `sg/embedded`/osExecCommand#Cmd. +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/osExecCommand#Cmd. // documentation // > ```go // > struct field Cmd *os/exec.Cmd @@ -33,9 +33,9 @@ // ^^^ reference github.com/golang/go/src go1.22 `os/exec`/Cmd# } -//⌄ enclosing_range_start 0.1.test `sg/embedded`/wrapExecCommand(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/wrapExecCommand(). func wrapExecCommand(c *exec.Cmd) { -// ^^^^^^^^^^^^^^^ definition 0.1.test `sg/embedded`/wrapExecCommand(). +// ^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/wrapExecCommand(). // documentation // > ```go // > func wrapExecCommand(c *Cmd) @@ -44,14 +44,14 @@ // ^^^^ reference github.com/golang/go/src go1.22 `os/exec`/ // ^^^ reference github.com/golang/go/src go1.22 `os/exec`/Cmd# _ = &osExecCommand{Cmd: c} -// ^^^^^^^^^^^^^ reference 0.1.test `sg/embedded`/osExecCommand# -// ^^^ reference 0.1.test `sg/embedded`/osExecCommand#Cmd. +// ^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/osExecCommand# +// ^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/osExecCommand#Cmd. // ^ reference local 0 } -//⌃ enclosing_range_end 0.1.test `sg/embedded`/wrapExecCommand(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/wrapExecCommand(). type Inner struct { -// ^^^^^ definition 0.1.test `sg/embedded`/Inner# +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Inner# // documentation // > ```go // > type Inner struct @@ -65,19 +65,19 @@ // > } // > ``` X int -// ^ definition 0.1.test `sg/embedded`/Inner#X. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Inner#X. // documentation // > ```go // > struct field X int // > ``` Y int -// ^ definition 0.1.test `sg/embedded`/Inner#Y. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Inner#Y. // documentation // > ```go // > struct field Y int // > ``` Z int -// ^ definition 0.1.test `sg/embedded`/Inner#Z. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Inner#Z. // documentation // > ```go // > struct field Z int @@ -85,7 +85,7 @@ } type Outer struct { -// ^^^^^ definition 0.1.test `sg/embedded`/Outer# +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Outer# // documentation // > ```go // > type Outer struct @@ -98,55 +98,55 @@ // > } // > ``` Inner -// ^^^^^ definition 0.1.test `sg/embedded`/Outer#Inner. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Outer#Inner. // documentation // > ```go -// > struct field Inner sg/embedded.Inner +// > struct field Inner github.com/sourcegraph/scip-go/internal/testdata/embedded.Inner // > ``` -// ^^^^^ reference 0.1.test `sg/embedded`/Inner# +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Inner# W int -// ^ definition 0.1.test `sg/embedded`/Outer#W. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Outer#W. // documentation // > ```go // > struct field W int // > ``` } -//⌄ enclosing_range_start 0.1.test `sg/embedded`/useOfCompositeStructs(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/useOfCompositeStructs(). func useOfCompositeStructs() { -// ^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/embedded`/useOfCompositeStructs(). +// ^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/useOfCompositeStructs(). // documentation // > ```go // > func useOfCompositeStructs() // > ``` o := Outer{ // ^ definition local 1 -// ^^^^^ reference 0.1.test `sg/embedded`/Outer# +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Outer# Inner: Inner{ -// ^^^^^ reference 0.1.test `sg/embedded`/Outer#Inner. -// ^^^^^ reference 0.1.test `sg/embedded`/Inner# +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Outer#Inner. +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Inner# X: 1, -// ^ reference 0.1.test `sg/embedded`/Inner#X. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Inner#X. Y: 2, -// ^ reference 0.1.test `sg/embedded`/Inner#Y. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Inner#Y. Z: 3, -// ^ reference 0.1.test `sg/embedded`/Inner#Z. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Inner#Z. }, W: 4, -// ^ reference 0.1.test `sg/embedded`/Outer#W. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Outer#W. } fmt.Printf("> %d\n", o.X) // ^^^ reference github.com/golang/go/src go1.22 fmt/ // ^^^^^^ reference github.com/golang/go/src go1.22 fmt/Printf(). // ^ reference local 1 -// ^ reference 0.1.test `sg/embedded`/Inner#X. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Inner#X. fmt.Println(o.Inner.Y) // ^^^ reference github.com/golang/go/src go1.22 fmt/ // ^^^^^^^ reference github.com/golang/go/src go1.22 fmt/Println(). // ^ reference local 1 -// ^^^^^ reference 0.1.test `sg/embedded`/Outer#Inner. -// ^ reference 0.1.test `sg/embedded`/Inner#Y. +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Outer#Inner. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/Inner#Y. } -//⌃ enclosing_range_end 0.1.test `sg/embedded`/useOfCompositeStructs(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/useOfCompositeStructs(). diff --git a/internal/testdata/snapshots/output/embedded/internal/nested.go b/internal/testdata/snapshots/output/embedded/internal/nested.go index db50f6d..3c454a8 100755 --- a/internal/testdata/snapshots/output/embedded/internal/nested.go +++ b/internal/testdata/snapshots/output/embedded/internal/nested.go @@ -1,41 +1,41 @@ package nested_internal -// ^^^^^^^^^^^^^^^ definition 0.1.test `sg/embedded/internal`/ +// ^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded/internal`/ // documentation // > package nested_internal import ( "fmt" // ^^^ reference github.com/golang/go/src go1.22 fmt/ - "sg/embedded" -// ^^^^^^^^^^^ reference 0.1.test `sg/embedded`/ + "github.com/sourcegraph/scip-go/internal/testdata/embedded" +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/ ) -//⌄ enclosing_range_start 0.1.test `sg/embedded/internal`/Something(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded/internal`/Something(). func Something(recent embedded.RecentCommittersResults) { -// ^^^^^^^^^ definition 0.1.test `sg/embedded/internal`/Something(). +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded/internal`/Something(). // documentation // > ```go // > func Something(recent RecentCommittersResults) // > ``` // ^^^^^^ definition local 0 -// ^^^^^^^^ reference 0.1.test `sg/embedded`/ -// ^^^^^^^^^^^^^^^^^^^^^^^ reference 0.1.test `sg/embedded`/RecentCommittersResults# +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/ +// ^^^^^^^^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults# for _, commit := range recent.Nodes { // ^^^^^^ definition local 1 // ^^^^^^ reference local 0 -// ^^^^^ reference 0.1.test `sg/embedded`/RecentCommittersResults#Nodes. +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes. for _, author := range commit.Authors.Nodes { // ^^^^^^ definition local 2 // ^^^^^^ reference local 1 -// ^^^^^^^ reference 0.1.test `sg/embedded`/RecentCommittersResults#Nodes.Authors. -// ^^^^^ reference 0.1.test `sg/embedded`/RecentCommittersResults#Nodes.Authors.Nodes. +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes.Authors. +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes.Authors.Nodes. fmt.Println(author.Name) // ^^^ reference github.com/golang/go/src go1.22 fmt/ // ^^^^^^^ reference github.com/golang/go/src go1.22 fmt/Println(). // ^^^^^^ reference local 2 -// ^^^^ reference 0.1.test `sg/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.Name. +// ^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.Name. } } } -//⌃ enclosing_range_end 0.1.test `sg/embedded/internal`/Something(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded/internal`/Something(). diff --git a/internal/testdata/snapshots/output/embedded/nested.go b/internal/testdata/snapshots/output/embedded/nested.go index 00e809f..4b4adf5 100755 --- a/internal/testdata/snapshots/output/embedded/nested.go +++ b/internal/testdata/snapshots/output/embedded/nested.go @@ -1,5 +1,5 @@ package embedded -// ^^^^^^^^ definition 0.1.test `sg/embedded`/ +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/ // documentation // > package embedded @@ -7,7 +7,7 @@ // ^^^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/ type NestedHandler struct { -// ^^^^^^^^^^^^^ definition 0.1.test `sg/embedded`/NestedHandler# +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/NestedHandler# // documentation // > ```go // > type NestedHandler struct @@ -22,7 +22,7 @@ // relationship github.com/golang/go/src go1.22 `net/http`/Handler# implementation http.Handler // ^^^^ reference github.com/golang/go/src go1.22 `net/http`/ -// ^^^^^^^ definition 0.1.test `sg/embedded`/NestedHandler#Handler. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/NestedHandler#Handler. // documentation // > ```go // > struct field Handler net/http.Handler @@ -31,32 +31,32 @@ // Wow, a great thing for integers Other int -// ^^^^^ definition 0.1.test `sg/embedded`/NestedHandler#Other. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/NestedHandler#Other. // documentation // > ```go // > struct field Other int // > ``` } -//⌄ enclosing_range_start 0.1.test `sg/embedded`/NestedExample(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/NestedExample(). func NestedExample(n NestedHandler) { -// ^^^^^^^^^^^^^ definition 0.1.test `sg/embedded`/NestedExample(). +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/NestedExample(). // documentation // > ```go // > func NestedExample(n NestedHandler) // > ``` // ^ definition local 0 -// ^^^^^^^^^^^^^ reference 0.1.test `sg/embedded`/NestedHandler# +// ^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/NestedHandler# _ = n.Handler.ServeHTTP // ^ reference local 0 -// ^^^^^^^ reference 0.1.test `sg/embedded`/NestedHandler#Handler. +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/NestedHandler#Handler. // ^^^^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/Handler#ServeHTTP. _ = n.ServeHTTP // ^ reference local 0 // ^^^^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/Handler#ServeHTTP. _ = n.Other // ^ reference local 0 -// ^^^^^ reference 0.1.test `sg/embedded`/NestedHandler#Other. +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/NestedHandler#Other. } -//⌃ enclosing_range_end 0.1.test `sg/embedded`/NestedExample(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/NestedExample(). diff --git a/internal/testdata/snapshots/output/embedded/something.go b/internal/testdata/snapshots/output/embedded/something.go index 657ec85..3421fca 100755 --- a/internal/testdata/snapshots/output/embedded/something.go +++ b/internal/testdata/snapshots/output/embedded/something.go @@ -1,11 +1,11 @@ package embedded -// ^^^^^^^^ reference 0.1.test `sg/embedded`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/ import "fmt" // ^^^ reference github.com/golang/go/src go1.22 fmt/ type RecentCommittersResults struct { -// ^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults# +// ^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults# // documentation // > ```go // > type RecentCommittersResults struct @@ -32,56 +32,56 @@ // > } // > ``` Nodes []struct { -// ^^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults#Nodes. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes. // documentation // > ```go // > struct field Nodes []struct{Authors struct{Nodes []struct{Date string; Email string; Name string; User struct{Login string}; AvatarURL string}}} // > ``` Authors struct { -// ^^^^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults#Nodes.Authors. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes.Authors. // documentation // > ```go // > struct field Authors struct{Nodes []struct{Date string; Email string; Name string; User struct{Login string}; AvatarURL string}} // > ``` Nodes []struct { -// ^^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults#Nodes.Authors.Nodes. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes.Authors.Nodes. // documentation // > ```go // > struct field Nodes []struct{Date string; Email string; Name string; User struct{Login string}; AvatarURL string} // > ``` Date string -// ^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.Date. +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.Date. // documentation // > ```go // > struct field Date string // > ``` Email string -// ^^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.Email. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.Email. // documentation // > ```go // > struct field Email string // > ``` Name string -// ^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.Name. +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.Name. // documentation // > ```go // > struct field Name string // > ``` User struct { -// ^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.User. +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.User. // documentation // > ```go // > struct field User struct{Login string} // > ``` Login string -// ^^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.User.Login. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.User.Login. // documentation // > ```go // > struct field Login string // > ``` } AvatarURL string -// ^^^^^^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.AvatarURL. +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#Nodes.Authors.Nodes.AvatarURL. // documentation // > ```go // > struct field AvatarURL string @@ -90,13 +90,13 @@ } } PageInfo struct { -// ^^^^^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults#PageInfo. +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#PageInfo. // documentation // > ```go // > struct field PageInfo struct{HasNextPage bool} // > ``` HasNextPage bool -// ^^^^^^^^^^^ definition 0.1.test `sg/embedded`/RecentCommittersResults#PageInfo.HasNextPage. +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/embedded`/RecentCommittersResults#PageInfo.HasNextPage. // documentation // > ```go // > struct field HasNextPage bool diff --git a/internal/testdata/snapshots/output/generallyeric/generallyeric.go b/internal/testdata/snapshots/output/generallyeric/generallyeric.go index 9e402b4..1f9c2ba 100755 --- a/internal/testdata/snapshots/output/generallyeric/generallyeric.go +++ b/internal/testdata/snapshots/output/generallyeric/generallyeric.go @@ -1,15 +1,15 @@ // generallyeric -> generic for short package generallyeric -// ^^^^^^^^^^^^^ definition 0.1.test `sg/generallyeric`/ +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/ // documentation // > generallyeric -> generic for short import "fmt" // ^^^ reference github.com/golang/go/src go1.22 fmt/ -//⌄ enclosing_range_start 0.1.test `sg/generallyeric`/Print(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Print(). func Print[T any](s []T) { -// ^^^^^ definition 0.1.test `sg/generallyeric`/Print(). +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Print(). // documentation // > ```go // > func Print[T any](s []T) @@ -26,5 +26,5 @@ // ^ reference local 2 } } -//⌃ enclosing_range_end 0.1.test `sg/generallyeric`/Print(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Print(). diff --git a/internal/testdata/snapshots/output/generallyeric/new_operators.go b/internal/testdata/snapshots/output/generallyeric/new_operators.go index 0263860..272c7ae 100755 --- a/internal/testdata/snapshots/output/generallyeric/new_operators.go +++ b/internal/testdata/snapshots/output/generallyeric/new_operators.go @@ -1,11 +1,11 @@ package generallyeric -// ^^^^^^^^^^^^^ reference 0.1.test `sg/generallyeric`/ +// ^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/ import "golang.org/x/exp/constraints" // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference golang.org/x/exp 47842c84f3db `golang.org/x/exp/constraints`/ type Number interface { -// ^^^^^^ definition 0.1.test `sg/generallyeric`/Number# +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Number# // documentation // > ```go // > type Number interface @@ -25,25 +25,25 @@ // ^^^^^^^ reference golang.org/x/exp 47842c84f3db `golang.org/x/exp/constraints`/Complex# } -//⌄ enclosing_range_start 0.1.test `sg/generallyeric`/Double(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Double(). func Double[T Number](value T) T { -// ^^^^^^ definition 0.1.test `sg/generallyeric`/Double(). +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Double(). // documentation // > ```go // > func Double[T Number](value T) T // > ``` // ^ definition local 0 -// ^^^^^^ reference 0.1.test `sg/generallyeric`/Number# +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Number# // ^^^^^ definition local 1 // ^ reference local 0 // ^ reference local 0 return value * 2 // ^^^^^ reference local 1 } -//⌃ enclosing_range_end 0.1.test `sg/generallyeric`/Double(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Double(). type Box[T any] struct { -// ^^^ definition 0.1.test `sg/generallyeric`/Box# +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Box# // documentation // > ```go // > type Box struct @@ -56,7 +56,7 @@ // > ``` // ^ definition local 2 Something T -// ^^^^^^^^^ definition 0.1.test `sg/generallyeric`/Box#Something. +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Box#Something. // documentation // > ```go // > struct field Something T @@ -65,7 +65,7 @@ } type handler[T any] struct { -// ^^^^^^^ definition 0.1.test `sg/generallyeric`/handler# +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/handler# // documentation // > ```go // > type handler struct @@ -79,15 +79,15 @@ // > ``` // ^ definition local 3 Box[T] -// ^^^ definition 0.1.test `sg/generallyeric`/handler#Box. +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/handler#Box. // documentation // > ```go -// > struct field Box sg/generallyeric.Box[T] +// > struct field Box github.com/sourcegraph/scip-go/internal/testdata/generallyeric.Box[T] // > ``` -// ^^^ reference 0.1.test `sg/generallyeric`/Box# +// ^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Box# // ^ reference local 3 Another string -// ^^^^^^^ definition 0.1.test `sg/generallyeric`/handler#Another. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/handler#Another. // documentation // > ```go // > struct field Another string diff --git a/internal/testdata/snapshots/output/generallyeric/person.go b/internal/testdata/snapshots/output/generallyeric/person.go index 9330b9e..bceb94e 100755 --- a/internal/testdata/snapshots/output/generallyeric/person.go +++ b/internal/testdata/snapshots/output/generallyeric/person.go @@ -1,11 +1,11 @@ package generallyeric -// ^^^^^^^^^^^^^ reference 0.1.test `sg/generallyeric`/ +// ^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/ import "fmt" // ^^^ reference github.com/golang/go/src go1.22 fmt/ type Person interface { -// ^^^^^^ definition 0.1.test `sg/generallyeric`/Person# +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Person# // documentation // > ```go // > type Person interface @@ -17,7 +17,7 @@ // > } // > ``` Work() -// ^^^^ definition 0.1.test `sg/generallyeric`/Person#Work. +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Person#Work. // documentation // > ```go // > func (Person).Work() @@ -25,39 +25,39 @@ } type worker string -// ^^^^^^ definition 0.1.test `sg/generallyeric`/worker# +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/worker# // documentation // > ```go // > string // > ``` -// relationship 0.1.test `sg/generallyeric`/Person# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Person# implementation -//⌄ enclosing_range_start 0.1.test `sg/generallyeric`/worker#Work(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/worker#Work(). func (w worker) Work() { // ^ definition local 0 -// ^^^^^^ reference 0.1.test `sg/generallyeric`/worker# -// ^^^^ definition 0.1.test `sg/generallyeric`/worker#Work(). +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/worker# +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/worker#Work(). // documentation // > ```go // > func (worker).Work() // > ``` -// relationship 0.1.test `sg/generallyeric`/Person#Work. implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Person#Work. implementation fmt.Printf("%s is working\n", w) // ^^^ reference github.com/golang/go/src go1.22 fmt/ // ^^^^^^ reference github.com/golang/go/src go1.22 fmt/Printf(). // ^ reference local 0 } -//⌃ enclosing_range_end 0.1.test `sg/generallyeric`/worker#Work(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/worker#Work(). -//⌄ enclosing_range_start 0.1.test `sg/generallyeric`/DoWork(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/DoWork(). func DoWork[T Person](things []T) { -// ^^^^^^ definition 0.1.test `sg/generallyeric`/DoWork(). +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/DoWork(). // documentation // > ```go // > func DoWork[T Person](things []T) // > ``` // ^ definition local 1 -// ^^^^^^ reference 0.1.test `sg/generallyeric`/Person# +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Person# // ^^^^^^ definition local 2 // ^ reference local 1 for _, v := range things { @@ -65,14 +65,14 @@ // ^^^^^^ reference local 2 v.Work() // ^ reference local 3 -// ^^^^ reference 0.1.test `sg/generallyeric`/Person#Work. +// ^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/Person#Work. } } -//⌃ enclosing_range_end 0.1.test `sg/generallyeric`/DoWork(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/DoWork(). -//⌄ enclosing_range_start 0.1.test `sg/generallyeric`/main(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/main(). func main() { -// ^^^^ definition 0.1.test `sg/generallyeric`/main(). +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/main(). // documentation // > ```go // > func main() @@ -81,7 +81,7 @@ // ^ definition local 4 // ^ definition local 5 // ^ definition local 6 -// ^^^^^^ reference 0.1.test `sg/generallyeric`/worker# +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/worker# a = "A" // ^ reference local 4 b = "B" @@ -89,11 +89,11 @@ c = "C" // ^ reference local 6 DoWork([]worker{a, b, c}) -// ^^^^^^ reference 0.1.test `sg/generallyeric`/DoWork(). -// ^^^^^^ reference 0.1.test `sg/generallyeric`/worker# +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/DoWork(). +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/worker# // ^ reference local 4 // ^ reference local 5 // ^ reference local 6 } -//⌃ enclosing_range_end 0.1.test `sg/generallyeric`/main(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/generallyeric`/main(). diff --git a/internal/testdata/snapshots/output/impls/impls.go b/internal/testdata/snapshots/output/impls/impls.go index 01532d5..b76e497 100755 --- a/internal/testdata/snapshots/output/impls/impls.go +++ b/internal/testdata/snapshots/output/impls/impls.go @@ -1,10 +1,10 @@ package impls -// ^^^^^ definition 0.1.test `sg/impls`/ +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/ // documentation // > package impls type I1 interface { -// ^^ definition 0.1.test `sg/impls`/I1# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1# // documentation // > ```go // > type I1 interface @@ -16,7 +16,7 @@ // > } // > ``` F1() -// ^^ definition 0.1.test `sg/impls`/I1#F1. +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1#F1. // documentation // > ```go // > func (I1).F1() @@ -24,7 +24,7 @@ } type I1Clone interface { -// ^^^^^^^ definition 0.1.test `sg/impls`/I1Clone# +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1Clone# // documentation // > ```go // > type I1Clone interface @@ -36,7 +36,7 @@ // > } // > ``` F1() -// ^^ definition 0.1.test `sg/impls`/I1Clone#F1. +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1Clone#F1. // documentation // > ```go // > func (I1Clone).F1() @@ -44,7 +44,7 @@ } type IfaceOther interface { -// ^^^^^^^^^^ definition 0.1.test `sg/impls`/IfaceOther# +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/IfaceOther# // documentation // > ```go // > type IfaceOther interface @@ -57,13 +57,13 @@ // > } // > ``` Something() -// ^^^^^^^^^ definition 0.1.test `sg/impls`/IfaceOther#Something. +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/IfaceOther#Something. // documentation // > ```go // > func (IfaceOther).Something() // > ``` Another() -// ^^^^^^^ definition 0.1.test `sg/impls`/IfaceOther#Another. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/IfaceOther#Another. // documentation // > ```go // > func (IfaceOther).Another() @@ -71,56 +71,56 @@ } type T1 int -// ^^ definition 0.1.test `sg/impls`/T1# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T1# // documentation // > ```go // > int // > ``` -// relationship 0.1.test `sg/impls`/I1# implementation -// relationship 0.1.test `sg/impls`/I1Clone# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1Clone# implementation -//⌄ enclosing_range_start 0.1.test `sg/impls`/T1#F1(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T1#F1(). func (r T1) F1() {} // ^ definition local 0 -// ^^ reference 0.1.test `sg/impls`/T1# -// ^^ definition 0.1.test `sg/impls`/T1#F1(). +// ^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T1# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T1#F1(). // documentation // > ```go // > func (T1).F1() // > ``` -// relationship 0.1.test `sg/impls`/I1#F1. implementation -// relationship 0.1.test `sg/impls`/I1Clone#F1. implementation -// ⌃ enclosing_range_end 0.1.test `sg/impls`/T1#F1(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1#F1. implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1Clone#F1. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T1#F1(). type T2 int -// ^^ definition 0.1.test `sg/impls`/T2# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T2# // documentation // > ```go // > int // > ``` -// relationship 0.1.test `sg/impls`/I1# implementation -// relationship 0.1.test `sg/impls`/I1Clone# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1Clone# implementation -//⌄ enclosing_range_start 0.1.test `sg/impls`/T2#F1(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T2#F1(). func (r T2) F1() {} // ^ definition local 1 -// ^^ reference 0.1.test `sg/impls`/T2# -// ^^ definition 0.1.test `sg/impls`/T2#F1(). +// ^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T2# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T2#F1(). // documentation // > ```go // > func (T2).F1() // > ``` -// relationship 0.1.test `sg/impls`/I1#F1. implementation -// relationship 0.1.test `sg/impls`/I1Clone#F1. implementation -// ⌃ enclosing_range_end 0.1.test `sg/impls`/T2#F1(). -//⌄ enclosing_range_start 0.1.test `sg/impls`/T2#F2(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1#F1. implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/I1Clone#F1. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T2#F1(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T2#F2(). func (r T2) F2() {} // ^ definition local 2 -// ^^ reference 0.1.test `sg/impls`/T2# -// ^^ definition 0.1.test `sg/impls`/T2#F2(). +// ^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T2# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T2#F2(). // documentation // > ```go // > func (T2).F2() // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/impls`/T2#F2(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/T2#F2(). diff --git a/internal/testdata/snapshots/output/impls/remote_impls.go b/internal/testdata/snapshots/output/impls/remote_impls.go index cd3eebd..76c0de4 100755 --- a/internal/testdata/snapshots/output/impls/remote_impls.go +++ b/internal/testdata/snapshots/output/impls/remote_impls.go @@ -1,12 +1,12 @@ package impls -// ^^^^^ reference 0.1.test `sg/impls`/ +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/ import "net/http" // ^^^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/ -//⌄ enclosing_range_start 0.1.test `sg/impls`/Something(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/Something(). func Something(r http.ResponseWriter) {} -// ^^^^^^^^^ definition 0.1.test `sg/impls`/Something(). +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/Something(). // documentation // > ```go // > func Something(r ResponseWriter) @@ -14,10 +14,10 @@ // ^ definition local 0 // ^^^^ reference github.com/golang/go/src go1.22 `net/http`/ // ^^^^^^^^^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/ResponseWriter# -// ⌃ enclosing_range_end 0.1.test `sg/impls`/Something(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/Something(). type MyWriter struct{} -// ^^^^^^^^ definition 0.1.test `sg/impls`/MyWriter# +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter# // documentation // > ```go // > type MyWriter struct @@ -31,11 +31,11 @@ // relationship github.com/golang/go/src go1.22 `net/http`/ResponseWriter# implementation // relationship github.com/golang/go/src go1.22 io/Writer# implementation -//⌄ enclosing_range_start 0.1.test `sg/impls`/MyWriter#Header(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter#Header(). func (w MyWriter) Header() http.Header { panic("") } // ^ definition local 1 -// ^^^^^^^^ reference 0.1.test `sg/impls`/MyWriter# -// ^^^^^^ definition 0.1.test `sg/impls`/MyWriter#Header(). +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter# +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter#Header(). // documentation // > ```go // > func (MyWriter).Header() Header @@ -43,12 +43,12 @@ // relationship github.com/golang/go/src go1.22 `net/http`/ResponseWriter#Header. implementation // ^^^^ reference github.com/golang/go/src go1.22 `net/http`/ // ^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/Header# -// ⌃ enclosing_range_end 0.1.test `sg/impls`/MyWriter#Header(). -//⌄ enclosing_range_start 0.1.test `sg/impls`/MyWriter#Write(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter#Header(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter#Write(). func (w MyWriter) Write([]byte) (int, error) { panic("") } // ^ definition local 2 -// ^^^^^^^^ reference 0.1.test `sg/impls`/MyWriter# -// ^^^^^ definition 0.1.test `sg/impls`/MyWriter#Write(). +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter# +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter#Write(). // documentation // > ```go // > func (MyWriter).Write([]byte) (int, error) @@ -57,30 +57,30 @@ // relationship github.com/golang/go/src go1.22 `internal/bisect`/Writer#Write. implementation // relationship github.com/golang/go/src go1.22 `net/http`/ResponseWriter#Write. implementation // relationship github.com/golang/go/src go1.22 io/Writer#Write. implementation -// ⌃ enclosing_range_end 0.1.test `sg/impls`/MyWriter#Write(). -//⌄ enclosing_range_start 0.1.test `sg/impls`/MyWriter#WriteHeader(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter#Write(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter#WriteHeader(). func (w MyWriter) WriteHeader(statusCode int) { panic("") } // ^ definition local 3 -// ^^^^^^^^ reference 0.1.test `sg/impls`/MyWriter# -// ^^^^^^^^^^^ definition 0.1.test `sg/impls`/MyWriter#WriteHeader(). +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter# +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter#WriteHeader(). // documentation // > ```go // > func (MyWriter).WriteHeader(statusCode int) // > ``` // relationship github.com/golang/go/src go1.22 `net/http`/ResponseWriter#WriteHeader. implementation // ^^^^^^^^^^ definition local 4 -// ⌃ enclosing_range_end 0.1.test `sg/impls`/MyWriter#WriteHeader(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter#WriteHeader(). -//⌄ enclosing_range_start 0.1.test `sg/impls`/Another(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/Another(). func Another() { -// ^^^^^^^ definition 0.1.test `sg/impls`/Another(). +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/Another(). // documentation // > ```go // > func Another() // > ``` Something(MyWriter{}) -// ^^^^^^^^^ reference 0.1.test `sg/impls`/Something(). -// ^^^^^^^^ reference 0.1.test `sg/impls`/MyWriter# +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/Something(). +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/MyWriter# } -//⌃ enclosing_range_end 0.1.test `sg/impls`/Another(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/impls`/Another(). diff --git a/internal/testdata/snapshots/output/initial/builtin_types.go b/internal/testdata/snapshots/output/initial/builtin_types.go index 7ab7e27..64d5c72 100755 --- a/internal/testdata/snapshots/output/initial/builtin_types.go +++ b/internal/testdata/snapshots/output/initial/builtin_types.go @@ -1,9 +1,9 @@ package initial -// ^^^^^^^ reference 0.1.test `sg/initial`/ +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/ -//⌄ enclosing_range_start 0.1.test `sg/initial`/UsesBuiltin(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/UsesBuiltin(). func UsesBuiltin() int { -// ^^^^^^^^^^^ definition 0.1.test `sg/initial`/UsesBuiltin(). +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/UsesBuiltin(). // documentation // > ```go // > func UsesBuiltin() int @@ -13,5 +13,5 @@ return x // ^ reference local 0 } -//⌃ enclosing_range_end 0.1.test `sg/initial`/UsesBuiltin(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/UsesBuiltin(). diff --git a/internal/testdata/snapshots/output/initial/child_symbols.go b/internal/testdata/snapshots/output/initial/child_symbols.go index 77f2ece..fba9a9a 100755 --- a/internal/testdata/snapshots/output/initial/child_symbols.go +++ b/internal/testdata/snapshots/output/initial/child_symbols.go @@ -1,9 +1,9 @@ package initial -// ^^^^^^^ reference 0.1.test `sg/initial`/ +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/ // Const is a constant equal to 5. It's the best constant I've ever written. 😹 const Const = 5 -// ^^^^^ definition 0.1.test `sg/initial`/Const. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Const. // documentation // > ```go // > const Const untyped int = 5 @@ -15,7 +15,7 @@ const ( // ConstBlock1 is a constant in a block. ConstBlock1 = 1 -// ^^^^^^^^^^^ definition 0.1.test `sg/initial`/ConstBlock1. +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/ConstBlock1. // documentation // > ```go // > const ConstBlock1 untyped int = 1 @@ -25,7 +25,7 @@ // ConstBlock2 is a constant in a block. ConstBlock2 = 2 -// ^^^^^^^^^^^ definition 0.1.test `sg/initial`/ConstBlock2. +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/ConstBlock2. // documentation // > ```go // > const ConstBlock2 untyped int = 2 @@ -36,33 +36,33 @@ // Var is a variable interface. var Var Interface = &Struct{Field: "bar!"} -// ^^^ definition 0.1.test `sg/initial`/Var. +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Var. // documentation // > ```go // > var Var Interface // > ``` // documentation // > Var is a variable interface. -// ^^^^^^^^^ reference 0.1.test `sg/initial`/Interface# -// ^^^^^^ reference 0.1.test `sg/initial`/Struct# -// ^^^^^ reference 0.1.test `sg/initial`/Struct#Field. +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Interface# +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct# +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#Field. // unexportedVar is an unexported variable interface. var unexportedVar Interface = &Struct{Field: "bar!"} -// ^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/unexportedVar. +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/unexportedVar. // documentation // > ```go // > var unexportedVar Interface // > ``` // documentation // > unexportedVar is an unexported variable interface. -// ^^^^^^^^^ reference 0.1.test `sg/initial`/Interface# -// ^^^^^^ reference 0.1.test `sg/initial`/Struct# -// ^^^^^ reference 0.1.test `sg/initial`/Struct#Field. +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Interface# +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct# +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#Field. // x has a builtin error type var x error -// ^ definition 0.1.test `sg/initial`/x. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/x. // documentation // > ```go // > var x error @@ -71,37 +71,37 @@ // > x has a builtin error type var BigVar Interface = &Struct{ -// ^^^^^^ definition 0.1.test `sg/initial`/BigVar. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/BigVar. // documentation // > ```go // > var BigVar Interface // > ``` -// ^^^^^^^^^ reference 0.1.test `sg/initial`/Interface# -// ^^^^^^ reference 0.1.test `sg/initial`/Struct# +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Interface# +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct# Field: "bar!", -// ^^^^^ reference 0.1.test `sg/initial`/Struct#Field. +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#Field. Anonymous: struct { -// ^^^^^^^^^ reference 0.1.test `sg/initial`/Struct#Anonymous. +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#Anonymous. FieldA int -// ^^^^^^ definition 0.1.test `sg/initial`/BigVar:FieldA. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/BigVar:FieldA. // documentation // > ```go // > struct field FieldA int // > ``` FieldB int -// ^^^^^^ definition 0.1.test `sg/initial`/BigVar:FieldB. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/BigVar:FieldB. // documentation // > ```go // > struct field FieldB int // > ``` FieldC int -// ^^^^^^ definition 0.1.test `sg/initial`/BigVar:FieldC. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/BigVar:FieldC. // documentation // > ```go // > struct field FieldC int // > ``` }{FieldA: 1337}, -// ^^^^^^ reference 0.1.test `sg/initial`/BigVar:FieldA. +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/BigVar:FieldA. } // What are docs, really? @@ -118,7 +118,7 @@ var ( // This has some docs VarBlock1 = "if you're reading this" -// ^^^^^^^^^ definition 0.1.test `sg/initial`/VarBlock1. +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/VarBlock1. // documentation // > ```go // > var VarBlock1 string @@ -137,7 +137,7 @@ // > isn't allowed in Go docstrings, right? right?! VarBlock2 = "hi" -// ^^^^^^^^^ definition 0.1.test `sg/initial`/VarBlock2. +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/VarBlock2. // documentation // > ```go // > var VarBlock2 string @@ -158,7 +158,7 @@ // Embedded is a struct, to be embedded in another struct. type Embedded struct { -// ^^^^^^^^ definition 0.1.test `sg/initial`/Embedded# +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Embedded# // documentation // > ```go // > type Embedded struct @@ -174,13 +174,13 @@ // > ``` // EmbeddedField has some docs! EmbeddedField string -// ^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/Embedded#EmbeddedField. +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Embedded#EmbeddedField. // documentation // > ```go // > struct field EmbeddedField string // > ``` Field string // conflicts with parent "Field" -// ^^^^^ definition 0.1.test `sg/initial`/Embedded#Field. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Embedded#Field. // documentation // > ```go // > struct field Field string @@ -188,7 +188,7 @@ } type Struct struct { -// ^^^^^^ definition 0.1.test `sg/initial`/Struct# +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct# // documentation // > ```go // > type Struct struct @@ -205,40 +205,40 @@ // > } // > } // > ``` -// relationship 0.1.test `sg/initial`/Interface# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Interface# implementation *Embedded -// ^^^^^^^^ definition 0.1.test `sg/initial`/Struct#Embedded. +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#Embedded. // documentation // > ```go -// > struct field Embedded *sg/initial.Embedded +// > struct field Embedded *github.com/sourcegraph/scip-go/internal/testdata/initial.Embedded // > ``` -// ^^^^^^^^ reference 0.1.test `sg/initial`/Embedded# +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Embedded# Field string -// ^^^^^ definition 0.1.test `sg/initial`/Struct#Field. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#Field. // documentation // > ```go // > struct field Field string // > ``` Anonymous struct { -// ^^^^^^^^^ definition 0.1.test `sg/initial`/Struct#Anonymous. +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#Anonymous. // documentation // > ```go // > struct field Anonymous struct{FieldA int; FieldB int; FieldC int} // > ``` FieldA int -// ^^^^^^ definition 0.1.test `sg/initial`/Struct#Anonymous.FieldA. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#Anonymous.FieldA. // documentation // > ```go // > struct field FieldA int // > ``` FieldB int -// ^^^^^^ definition 0.1.test `sg/initial`/Struct#Anonymous.FieldB. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#Anonymous.FieldB. // documentation // > ```go // > struct field FieldB int // > ``` FieldC int -// ^^^^^^ definition 0.1.test `sg/initial`/Struct#Anonymous.FieldC. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#Anonymous.FieldC. // documentation // > ```go // > struct field FieldC int @@ -247,36 +247,36 @@ } // StructMethod has some docs! -//⌄ enclosing_range_start 0.1.test `sg/initial`/Struct#StructMethod(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#StructMethod(). func (s *Struct) StructMethod() {} // ^ definition local 0 -// ^^^^^^ reference 0.1.test `sg/initial`/Struct# -// ^^^^^^^^^^^^ definition 0.1.test `sg/initial`/Struct#StructMethod(). +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct# +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#StructMethod(). // documentation // > ```go // > func (*Struct).StructMethod() // > ``` // documentation // > StructMethod has some docs! -// ⌃ enclosing_range_end 0.1.test `sg/initial`/Struct#StructMethod(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#StructMethod(). -//⌄ enclosing_range_start 0.1.test `sg/initial`/Struct#ImplementsInterface(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#ImplementsInterface(). func (s *Struct) ImplementsInterface() string { return "hi!" } // ^ definition local 1 -// ^^^^^^ reference 0.1.test `sg/initial`/Struct# -// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/Struct#ImplementsInterface(). +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct# +// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#ImplementsInterface(). // documentation // > ```go // > func (*Struct).ImplementsInterface() string // > ``` -// relationship 0.1.test `sg/initial`/Interface#ImplementsInterface. implementation -// ⌃ enclosing_range_end 0.1.test `sg/initial`/Struct#ImplementsInterface(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Interface#ImplementsInterface. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#ImplementsInterface(). -//⌄ enclosing_range_start 0.1.test `sg/initial`/Struct#MachineLearning(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#MachineLearning(). func (s *Struct) MachineLearning( // ^ definition local 2 -// ^^^^^^ reference 0.1.test `sg/initial`/Struct# -// ^^^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/Struct#MachineLearning(). +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct# +// ^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#MachineLearning(). // documentation // > ```go // > func (*Struct).MachineLearning(param1 float32, hyperparam2 float32, hyperparam3 float32) float32 @@ -326,11 +326,11 @@ // ^^^^^^^^^^^ reference local 4 // ^^^^^^^^^^^ reference local 5 } -//⌃ enclosing_range_end 0.1.test `sg/initial`/Struct#MachineLearning(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct#MachineLearning(). // Interface has docs too type Interface interface { -// ^^^^^^^^^ definition 0.1.test `sg/initial`/Interface# +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Interface# // documentation // > ```go // > type Interface interface @@ -344,39 +344,39 @@ // > } // > ``` ImplementsInterface() string -// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/Interface#ImplementsInterface. +// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Interface#ImplementsInterface. // documentation // > ```go // > func (Interface).ImplementsInterface() string // > ``` } -//⌄ enclosing_range_start 0.1.test `sg/initial`/NewInterface(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/NewInterface(). func NewInterface() Interface { return nil } -// ^^^^^^^^^^^^ definition 0.1.test `sg/initial`/NewInterface(). +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/NewInterface(). // documentation // > ```go // > func NewInterface() Interface // > ``` -// ^^^^^^^^^ reference 0.1.test `sg/initial`/Interface# -// ⌃ enclosing_range_end 0.1.test `sg/initial`/NewInterface(). +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Interface# +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/NewInterface(). var SortExportedFirst = 1 -// ^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/SortExportedFirst. +// ^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/SortExportedFirst. // documentation // > ```go // > var SortExportedFirst int // > ``` var sortUnexportedSecond = 2 -// ^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/sortUnexportedSecond. +// ^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/sortUnexportedSecond. // documentation // > ```go // > var sortUnexportedSecond int // > ``` var _sortUnderscoreLast = 3 -// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/_sortUnderscoreLast. +// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/_sortUnderscoreLast. // documentation // > ```go // > var _sortUnderscoreLast int @@ -395,8 +395,8 @@ // || |-_\__ / // ((_/`(____,-' var _ = Interface(&Struct{}) -// ^^^^^^^^^ reference 0.1.test `sg/initial`/Interface# -// ^^^^^^ reference 0.1.test `sg/initial`/Struct# +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Interface# +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Struct# type _ = struct{} @@ -408,7 +408,7 @@ type ( // And confusing X struct { -// ^ definition 0.1.test `sg/initial`/X# +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/X# // documentation // > ```go // > type X struct @@ -422,7 +422,7 @@ // > } // > ``` bar string -// ^^^ definition 0.1.test `sg/initial`/X#bar. +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/X#bar. // documentation // > ```go // > struct field bar string @@ -430,7 +430,7 @@ } Y struct { -// ^ definition 0.1.test `sg/initial`/Y# +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Y# // documentation // > ```go // > type Y struct @@ -444,7 +444,7 @@ // > } // > ``` baz float64 -// ^^^ definition 0.1.test `sg/initial`/Y#baz. +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/Y#baz. // documentation // > ```go // > struct field baz float64 diff --git a/internal/testdata/snapshots/output/initial/func_declarations.go b/internal/testdata/snapshots/output/initial/func_declarations.go index 441f3ad..8f8329a 100755 --- a/internal/testdata/snapshots/output/initial/func_declarations.go +++ b/internal/testdata/snapshots/output/initial/func_declarations.go @@ -1,24 +1,24 @@ package initial -// ^^^^^^^ reference 0.1.test `sg/initial`/ +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/ -//⌄ enclosing_range_start 0.1.test `sg/initial`/UsesLater(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/UsesLater(). func UsesLater() { -// ^^^^^^^^^ definition 0.1.test `sg/initial`/UsesLater(). +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/UsesLater(). // documentation // > ```go // > func UsesLater() // > ``` DefinedLater() -// ^^^^^^^^^^^^ reference 0.1.test `sg/initial`/DefinedLater(). +// ^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/DefinedLater(). } -//⌃ enclosing_range_end 0.1.test `sg/initial`/UsesLater(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/UsesLater(). -//⌄ enclosing_range_start 0.1.test `sg/initial`/DefinedLater(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/DefinedLater(). func DefinedLater() {} -// ^^^^^^^^^^^^ definition 0.1.test `sg/initial`/DefinedLater(). +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/DefinedLater(). // documentation // > ```go // > func DefinedLater() // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/initial`/DefinedLater(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/DefinedLater(). diff --git a/internal/testdata/snapshots/output/initial/methods_and_receivers.go b/internal/testdata/snapshots/output/initial/methods_and_receivers.go index ac8264a..167968c 100755 --- a/internal/testdata/snapshots/output/initial/methods_and_receivers.go +++ b/internal/testdata/snapshots/output/initial/methods_and_receivers.go @@ -1,11 +1,11 @@ package initial -// ^^^^^^^ reference 0.1.test `sg/initial`/ +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/ import "fmt" // ^^^ reference github.com/golang/go/src go1.22 fmt/ type MyStruct struct{ f, y int } -// ^^^^^^^^ definition 0.1.test `sg/initial`/MyStruct# +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MyStruct# // documentation // > ```go // > type MyStruct struct @@ -17,47 +17,47 @@ // > y int // > } // > ``` -// ^ definition 0.1.test `sg/initial`/MyStruct#f. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MyStruct#f. // documentation // > ```go // > struct field f int // > ``` -// ^ definition 0.1.test `sg/initial`/MyStruct#y. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MyStruct#y. // documentation // > ```go // > struct field y int // > ``` -//⌄ enclosing_range_start 0.1.test `sg/initial`/MyStruct#RecvFunction(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MyStruct#RecvFunction(). func (m MyStruct) RecvFunction(b int) int { return m.f + b } // ^ definition local 0 -// ^^^^^^^^ reference 0.1.test `sg/initial`/MyStruct# -// ^^^^^^^^^^^^ definition 0.1.test `sg/initial`/MyStruct#RecvFunction(). +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MyStruct# +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MyStruct#RecvFunction(). // documentation // > ```go // > func (MyStruct).RecvFunction(b int) int // > ``` // ^ definition local 1 // ^ reference local 0 -// ^ reference 0.1.test `sg/initial`/MyStruct#f. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MyStruct#f. // ^ reference local 1 -// ⌃ enclosing_range_end 0.1.test `sg/initial`/MyStruct#RecvFunction(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MyStruct#RecvFunction(). -//⌄ enclosing_range_start 0.1.test `sg/initial`/SomethingElse(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/SomethingElse(). func SomethingElse() { -// ^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/SomethingElse(). +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/SomethingElse(). // documentation // > ```go // > func SomethingElse() // > ``` s := MyStruct{f: 0} // ^ definition local 2 -// ^^^^^^^^ reference 0.1.test `sg/initial`/MyStruct# -// ^ reference 0.1.test `sg/initial`/MyStruct#f. +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MyStruct# +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MyStruct#f. fmt.Println(s) // ^^^ reference github.com/golang/go/src go1.22 fmt/ // ^^^^^^^ reference github.com/golang/go/src go1.22 fmt/Println(). // ^ reference local 2 } -//⌃ enclosing_range_end 0.1.test `sg/initial`/SomethingElse(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/SomethingElse(). diff --git a/internal/testdata/snapshots/output/initial/package_definition.go b/internal/testdata/snapshots/output/initial/package_definition.go index dbcd19f..6c5503f 100755 --- a/internal/testdata/snapshots/output/initial/package_definition.go +++ b/internal/testdata/snapshots/output/initial/package_definition.go @@ -1,7 +1,7 @@ // This is a module for testing purposes. // This should now be the place that has a definition package initial -// ^^^^^^^ definition 0.1.test `sg/initial`/ +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/ // documentation // > This is a module for testing purposes. // > This should now be the place that has a definition diff --git a/internal/testdata/snapshots/output/initial/rangefunc.go b/internal/testdata/snapshots/output/initial/rangefunc.go index 6a9836f..46cfbd2 100755 --- a/internal/testdata/snapshots/output/initial/rangefunc.go +++ b/internal/testdata/snapshots/output/initial/rangefunc.go @@ -1,14 +1,14 @@ package initial -// ^^^^^^^ reference 0.1.test `sg/initial`/ +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/ import ( "slices" // ^^^^^^ reference github.com/golang/go/src go1.22 slices/ ) -//⌄ enclosing_range_start 0.1.test `sg/initial`/f(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/f(). func f(xs []int) int { -// ^ definition 0.1.test `sg/initial`/f(). +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/f(). // documentation // > ```go // > func f(xs []int) int @@ -24,5 +24,5 @@ } return -1 } -//⌃ enclosing_range_end 0.1.test `sg/initial`/f(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/f(). diff --git a/internal/testdata/snapshots/output/initial/toplevel_decls.go b/internal/testdata/snapshots/output/initial/toplevel_decls.go index 255ca4f..e3f2768 100755 --- a/internal/testdata/snapshots/output/initial/toplevel_decls.go +++ b/internal/testdata/snapshots/output/initial/toplevel_decls.go @@ -1,34 +1,34 @@ package initial -// ^^^^^^^ reference 0.1.test `sg/initial`/ +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/ const MY_THING = 10 -// ^^^^^^^^ definition 0.1.test `sg/initial`/MY_THING. +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MY_THING. // documentation // > ```go // > const MY_THING untyped int = 10 // > ``` const OTHER_THING = MY_THING -// ^^^^^^^^^^^ definition 0.1.test `sg/initial`/OTHER_THING. +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/OTHER_THING. // documentation // > ```go // > const OTHER_THING untyped int = 10 // > ``` -// ^^^^^^^^ reference 0.1.test `sg/initial`/MY_THING. +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MY_THING. -//⌄ enclosing_range_start 0.1.test `sg/initial`/usesMyThing(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/usesMyThing(). func usesMyThing() { -// ^^^^^^^^^^^ definition 0.1.test `sg/initial`/usesMyThing(). +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/usesMyThing(). // documentation // > ```go // > func usesMyThing() // > ``` _ = MY_THING -// ^^^^^^^^ reference 0.1.test `sg/initial`/MY_THING. +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/MY_THING. } -//⌃ enclosing_range_end 0.1.test `sg/initial`/usesMyThing(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/usesMyThing(). var initFunctions = map[string]int{} -// ^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/initFunctions. +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/initFunctions. // documentation // > ```go // > var initFunctions map[string]int diff --git a/internal/testdata/snapshots/output/initial/type_declarations.go b/internal/testdata/snapshots/output/initial/type_declarations.go index 1b4ba27..741f743 100755 --- a/internal/testdata/snapshots/output/initial/type_declarations.go +++ b/internal/testdata/snapshots/output/initial/type_declarations.go @@ -1,23 +1,23 @@ package initial -// ^^^^^^^ reference 0.1.test `sg/initial`/ +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/ type LiteralType int -// ^^^^^^^^^^^ definition 0.1.test `sg/initial`/LiteralType# +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/LiteralType# // documentation // > ```go // > int // > ``` type FuncType func(LiteralType, int) bool -// ^^^^^^^^ definition 0.1.test `sg/initial`/FuncType# +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/FuncType# // documentation // > ```go // > func(LiteralType, int) bool // > ``` -// ^^^^^^^^^^^ reference 0.1.test `sg/initial`/LiteralType# +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/LiteralType# type IfaceType interface { -// ^^^^^^^^^ definition 0.1.test `sg/initial`/IfaceType# +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/IfaceType# // documentation // > ```go // > type IfaceType interface @@ -29,16 +29,16 @@ // > } // > ``` Method() LiteralType -// ^^^^^^ definition 0.1.test `sg/initial`/IfaceType#Method. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/IfaceType#Method. // documentation // > ```go // > func (IfaceType).Method() LiteralType // > ``` -// ^^^^^^^^^^^ reference 0.1.test `sg/initial`/LiteralType# +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/LiteralType# } type StructType struct { -// ^^^^^^^^^^ definition 0.1.test `sg/initial`/StructType# +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/StructType# // documentation // > ```go // > type StructType struct @@ -57,29 +57,29 @@ // > } // > ``` m IfaceType -// ^ definition 0.1.test `sg/initial`/StructType#m. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/StructType#m. // documentation // > ```go -// > struct field m sg/initial.IfaceType +// > struct field m github.com/sourcegraph/scip-go/internal/testdata/initial.IfaceType // > ``` -// ^^^^^^^^^ reference 0.1.test `sg/initial`/IfaceType# +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/IfaceType# f LiteralType -// ^ definition 0.1.test `sg/initial`/StructType#f. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/StructType#f. // documentation // > ```go -// > struct field f sg/initial.LiteralType +// > struct field f github.com/sourcegraph/scip-go/internal/testdata/initial.LiteralType // > ``` -// ^^^^^^^^^^^ reference 0.1.test `sg/initial`/LiteralType# +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/LiteralType# // anonymous struct anon struct { -// ^^^^ definition 0.1.test `sg/initial`/StructType#anon. +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/StructType#anon. // documentation // > ```go // > struct field anon struct{sub int} // > ``` sub int -// ^^^ definition 0.1.test `sg/initial`/StructType#anon.sub. +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/StructType#anon.sub. // documentation // > ```go // > struct field sub int @@ -88,13 +88,13 @@ // interface within struct i interface { -// ^ definition 0.1.test `sg/initial`/StructType#i. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/StructType#i. // documentation // > ```go // > struct field i interface{AnonMethod() bool} // > ``` AnonMethod() bool -// ^^^^^^^^^^ definition 0.1.test `sg/initial`/StructType#i.AnonMethod. +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/StructType#i.AnonMethod. // documentation // > ```go // > func (interface).AnonMethod() bool @@ -103,7 +103,7 @@ } type DeclaredBefore struct{ DeclaredAfter } -// ^^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/DeclaredBefore# +// ^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/DeclaredBefore# // documentation // > ```go // > type DeclaredBefore struct @@ -114,14 +114,14 @@ // > DeclaredAfter // > } // > ``` -// ^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/DeclaredBefore#DeclaredAfter. +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/DeclaredBefore#DeclaredAfter. // documentation // > ```go -// > struct field DeclaredAfter sg/initial.DeclaredAfter +// > struct field DeclaredAfter github.com/sourcegraph/scip-go/internal/testdata/initial.DeclaredAfter // > ``` -// ^^^^^^^^^^^^^ reference 0.1.test `sg/initial`/DeclaredAfter# +// ^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/DeclaredAfter# type DeclaredAfter struct{} -// ^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/DeclaredAfter# +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/DeclaredAfter# // documentation // > ```go // > type DeclaredAfter struct diff --git a/internal/testdata/snapshots/output/initial/type_hovers.go b/internal/testdata/snapshots/output/initial/type_hovers.go index b6c3c81..4b570b5 100755 --- a/internal/testdata/snapshots/output/initial/type_hovers.go +++ b/internal/testdata/snapshots/output/initial/type_hovers.go @@ -1,10 +1,10 @@ package initial -// ^^^^^^^ reference 0.1.test `sg/initial`/ +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/ type ( // HoverTypeList is a cool struct HoverTypeList struct{} -// ^^^^^^^^^^^^^ definition 0.1.test `sg/initial`/HoverTypeList# +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/HoverTypeList# // documentation // > ```go // > type HoverTypeList struct @@ -17,7 +17,7 @@ // This should show up as well type HoverType struct{} -// ^^^^^^^^^ definition 0.1.test `sg/initial`/HoverType# +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/initial`/HoverType# // documentation // > ```go // > type HoverType struct diff --git a/internal/testdata/snapshots/output/inlinestruct/inlinestruct.go b/internal/testdata/snapshots/output/inlinestruct/inlinestruct.go index 70f5909..e7b2310 100755 --- a/internal/testdata/snapshots/output/inlinestruct/inlinestruct.go +++ b/internal/testdata/snapshots/output/inlinestruct/inlinestruct.go @@ -1,10 +1,10 @@ package inlinestruct -// ^^^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/ +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ // documentation // > package inlinestruct type FieldInterface interface { -// ^^^^^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/FieldInterface# +// ^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/FieldInterface# // documentation // > ```go // > type FieldInterface interface @@ -16,7 +16,7 @@ // > } // > ``` SomeMethod() string -// ^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/FieldInterface#SomeMethod. +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/FieldInterface#SomeMethod. // documentation // > ```go // > func (FieldInterface).SomeMethod() string @@ -24,40 +24,40 @@ } var MyInline = struct { -// ^^^^^^^^ definition 0.1.test `sg/inlinestruct`/MyInline. +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MyInline. // documentation // > ```go // > var MyInline struct{privateField FieldInterface; PublicField FieldInterface} // > ``` privateField FieldInterface -// ^^^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/MyInline:privateField. +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MyInline:privateField. // documentation // > ```go -// > struct field privateField sg/inlinestruct.FieldInterface +// > struct field privateField github.com/sourcegraph/scip-go/internal/testdata/inlinestruct.FieldInterface // > ``` -// ^^^^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/FieldInterface# +// ^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/FieldInterface# PublicField FieldInterface -// ^^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/MyInline:PublicField. +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MyInline:PublicField. // documentation // > ```go -// > struct field PublicField sg/inlinestruct.FieldInterface +// > struct field PublicField github.com/sourcegraph/scip-go/internal/testdata/inlinestruct.FieldInterface // > ``` -// ^^^^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/FieldInterface# +// ^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/FieldInterface# }{} -//⌄ enclosing_range_start 0.1.test `sg/inlinestruct`/MyFunc(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MyFunc(). func MyFunc() { -// ^^^^^^ definition 0.1.test `sg/inlinestruct`/MyFunc(). +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MyFunc(). // documentation // > ```go // > func MyFunc() // > ``` _ = MyInline.privateField -// ^^^^^^^^ reference 0.1.test `sg/inlinestruct`/MyInline. -// ^^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/MyInline:privateField. +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MyInline. +// ^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MyInline:privateField. _ = MyInline.PublicField -// ^^^^^^^^ reference 0.1.test `sg/inlinestruct`/MyInline. -// ^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/MyInline:PublicField. +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MyInline. +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MyInline:PublicField. } -//⌃ enclosing_range_end 0.1.test `sg/inlinestruct`/MyFunc(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MyFunc(). diff --git a/internal/testdata/snapshots/output/inlinestruct/inlinestruct_func.go b/internal/testdata/snapshots/output/inlinestruct/inlinestruct_func.go index 06d9095..73e7ff8 100755 --- a/internal/testdata/snapshots/output/inlinestruct/inlinestruct_func.go +++ b/internal/testdata/snapshots/output/inlinestruct/inlinestruct_func.go @@ -1,8 +1,8 @@ package inlinestruct -// ^^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/ +// ^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ type InFuncSig struct { -// ^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/InFuncSig# +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/InFuncSig# // documentation // > ```go // > type InFuncSig struct @@ -14,7 +14,7 @@ // > } // > ``` value bool -// ^^^^^ definition 0.1.test `sg/inlinestruct`/InFuncSig#value. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/InFuncSig#value. // documentation // > ```go // > struct field value bool @@ -22,10 +22,10 @@ } var rowsCloseHook = func() func(InFuncSig, *error) { return nil } -// ^^^^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/rowsCloseHook. +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/rowsCloseHook. // documentation // > ```go // > var rowsCloseHook func() func(InFuncSig, *error) // > ``` -// ^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/InFuncSig# +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/InFuncSig# diff --git a/internal/testdata/snapshots/output/inlinestruct/inlinestruct_genericindex.go b/internal/testdata/snapshots/output/inlinestruct/inlinestruct_genericindex.go index 5d76b16..aa8acfc 100755 --- a/internal/testdata/snapshots/output/inlinestruct/inlinestruct_genericindex.go +++ b/internal/testdata/snapshots/output/inlinestruct/inlinestruct_genericindex.go @@ -1,8 +1,8 @@ package inlinestruct -// ^^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/ +// ^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ type Processor[T any] interface { -// ^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/Processor# +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Processor# // documentation // > ```go // > type Processor interface @@ -16,7 +16,7 @@ // > ``` // ^ definition local 0 Process(payload T) -// ^^^^^^^ definition 0.1.test `sg/inlinestruct`/Processor#Process. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Processor#Process. // documentation // > ```go // > func (Processor[T any]).Process(payload T) @@ -24,7 +24,7 @@ // ^^^^^^^ definition local 1 // ^ reference local 0 ProcessorType() string -// ^^^^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/Processor#ProcessorType. +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Processor#ProcessorType. // documentation // > ```go // > func (Processor[T any]).ProcessorType() string @@ -32,14 +32,14 @@ } type Limit int -// ^^^^^ definition 0.1.test `sg/inlinestruct`/Limit# +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Limit# // documentation // > ```go // > int // > ``` type ProcessImpl struct{} -// ^^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/ProcessImpl# +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ProcessImpl# // documentation // > ```go // > type ProcessImpl struct @@ -49,31 +49,31 @@ // > struct{} // > ``` -//⌄ enclosing_range_start 0.1.test `sg/inlinestruct`/ProcessImpl#Process(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ProcessImpl#Process(). func (p *ProcessImpl) Process(payload Limit) { panic("not implemented") } // ^ definition local 2 -// ^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/ProcessImpl# -// ^^^^^^^ definition 0.1.test `sg/inlinestruct`/ProcessImpl#Process(). +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ProcessImpl# +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ProcessImpl#Process(). // documentation // > ```go // > func (*ProcessImpl).Process(payload Limit) // > ``` // ^^^^^^^ definition local 3 -// ^^^^^ reference 0.1.test `sg/inlinestruct`/Limit# -// ⌃ enclosing_range_end 0.1.test `sg/inlinestruct`/ProcessImpl#Process(). -//⌄ enclosing_range_start 0.1.test `sg/inlinestruct`/ProcessImpl#ProcessorType(). +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Limit# +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ProcessImpl#Process(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ProcessImpl#ProcessorType(). func (p *ProcessImpl) ProcessorType() string { panic("not implemented") } // ^ definition local 4 -// ^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/ProcessImpl# -// ^^^^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/ProcessImpl#ProcessorType(). +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ProcessImpl# +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ProcessImpl#ProcessorType(). // documentation // > ```go // > func (*ProcessImpl).ProcessorType() string // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/inlinestruct`/ProcessImpl#ProcessorType(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ProcessImpl#ProcessorType(). var _ Processor[Limit] = &ProcessImpl{} -// ^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/Processor# -// ^^^^^ reference 0.1.test `sg/inlinestruct`/Limit# -// ^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/ProcessImpl# +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Processor# +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Limit# +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ProcessImpl# diff --git a/internal/testdata/snapshots/output/inlinestruct/inlinestruct_interface.go b/internal/testdata/snapshots/output/inlinestruct/inlinestruct_interface.go index 0eb2c63..ae1358b 100755 --- a/internal/testdata/snapshots/output/inlinestruct/inlinestruct_interface.go +++ b/internal/testdata/snapshots/output/inlinestruct/inlinestruct_interface.go @@ -1,18 +1,18 @@ package inlinestruct -// ^^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/ +// ^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ import "context" // ^^^^^^^ reference github.com/golang/go/src go1.22 context/ -//⌄ enclosing_range_start 0.1.test `sg/inlinestruct`/Target(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Target(). func Target() interface { -// ^^^^^^ definition 0.1.test `sg/inlinestruct`/Target(). +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Target(). // documentation // > ```go // > func Target() interface{AbbreviatedOID(Context) (string, error); Commit(Context) (string, error); OID(Context) (int, error); Type(Context) (int, error)} // > ``` OID(context.Context) (int, error) -// ^^^ definition 0.1.test `sg/inlinestruct`/func:Target:OID(). +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/func:Target:OID(). // documentation // > ```go // > func (interface).OID(Context) (int, error) @@ -20,7 +20,7 @@ // ^^^^^^^ reference github.com/golang/go/src go1.22 context/ // ^^^^^^^ reference github.com/golang/go/src go1.22 context/Context# AbbreviatedOID(context.Context) (string, error) -// ^^^^^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/func:Target:AbbreviatedOID(). +// ^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/func:Target:AbbreviatedOID(). // documentation // > ```go // > func (interface).AbbreviatedOID(Context) (string, error) @@ -28,7 +28,7 @@ // ^^^^^^^ reference github.com/golang/go/src go1.22 context/ // ^^^^^^^ reference github.com/golang/go/src go1.22 context/Context# Commit(context.Context) (string, error) -// ^^^^^^ definition 0.1.test `sg/inlinestruct`/func:Target:Commit(). +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/func:Target:Commit(). // documentation // > ```go // > func (interface).Commit(Context) (string, error) @@ -36,7 +36,7 @@ // ^^^^^^^ reference github.com/golang/go/src go1.22 context/ // ^^^^^^^ reference github.com/golang/go/src go1.22 context/Context# Type(context.Context) (int, error) -// ^^^^ definition 0.1.test `sg/inlinestruct`/func:Target:Type(). +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/func:Target:Type(). // documentation // > ```go // > func (interface).Type(Context) (int, error) @@ -46,23 +46,23 @@ } { panic("not implemented") } -//⌃ enclosing_range_end 0.1.test `sg/inlinestruct`/Target(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Target(). -//⌄ enclosing_range_start 0.1.test `sg/inlinestruct`/something(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/something(). func something() { -// ^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/something(). +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/something(). // documentation // > ```go // > func something() // > ``` x := Target() // ^ definition local 0 -// ^^^^^^ reference 0.1.test `sg/inlinestruct`/Target(). +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Target(). x.OID(context.Background()) // ^ reference local 0 -// ^^^ reference 0.1.test `sg/inlinestruct`/func:Target:OID(). +// ^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/func:Target:OID(). // ^^^^^^^ reference github.com/golang/go/src go1.22 context/ // ^^^^^^^^^^ reference github.com/golang/go/src go1.22 context/Background(). } -//⌃ enclosing_range_end 0.1.test `sg/inlinestruct`/something(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/something(). diff --git a/internal/testdata/snapshots/output/inlinestruct/inlinestruct_map.go b/internal/testdata/snapshots/output/inlinestruct/inlinestruct_map.go index 54ee259..6b06c01 100755 --- a/internal/testdata/snapshots/output/inlinestruct/inlinestruct_map.go +++ b/internal/testdata/snapshots/output/inlinestruct/inlinestruct_map.go @@ -1,8 +1,8 @@ package inlinestruct -// ^^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/ +// ^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ var testHook = func(map[string]string) {} -// ^^^^^^^^ definition 0.1.test `sg/inlinestruct`/testHook. +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/testHook. // documentation // > ```go // > var testHook func(map[string]string) diff --git a/internal/testdata/snapshots/output/inlinestruct/inlinestruct_multivar.go b/internal/testdata/snapshots/output/inlinestruct/inlinestruct_multivar.go index 0f62616..646f3e0 100755 --- a/internal/testdata/snapshots/output/inlinestruct/inlinestruct_multivar.go +++ b/internal/testdata/snapshots/output/inlinestruct/inlinestruct_multivar.go @@ -1,8 +1,8 @@ package inlinestruct -// ^^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/ +// ^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/ type Params struct{} -// ^^^^^^ definition 0.1.test `sg/inlinestruct`/Params# +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Params# // documentation // > ```go // > type Params struct @@ -12,7 +12,7 @@ // > struct{} // > ``` type HighlightedCode struct{} -// ^^^^^^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/HighlightedCode# +// ^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/HighlightedCode# // documentation // > ```go // > type HighlightedCode struct @@ -23,59 +23,59 @@ // > ``` var Mocks, emptyMocks struct { -// ^^^^^ definition 0.1.test `sg/inlinestruct`/Mocks. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Mocks. // documentation // > ```go // > var Mocks struct{Code func(p Params) (response *HighlightedCode, aborted bool, err error)} // > ``` -// ^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/emptyMocks. +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/emptyMocks. // documentation // > ```go // > var emptyMocks struct{Code func(p Params) (response *HighlightedCode, aborted bool, err error)} // > ``` Code func(p Params) (response *HighlightedCode, aborted bool, err error) -// ^^^^ definition 0.1.test `sg/inlinestruct`/inline-6-5:Code. +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/inline-6-5:Code. // documentation // > ```go -// > struct field Code func(p sg/inlinestruct.Params) (response *sg/inlinestruct.HighlightedCode, aborted bool, err error) +// > struct field Code func(p github.com/sourcegraph/scip-go/internal/testdata/inlinestruct.Params) (response *github.com/sourcegraph/scip-go/internal/testdata/inlinestruct.HighlightedCode, aborted bool, err error) // > ``` // ^ definition local 0 -// ^^^^^^ reference 0.1.test `sg/inlinestruct`/Params# +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Params# // ^^^^^^^^ definition local 1 -// ^^^^^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/HighlightedCode# +// ^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/HighlightedCode# // ^^^^^^^ definition local 2 // ^^^ definition local 3 } var MocksSingle struct { -// ^^^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/MocksSingle. +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MocksSingle. // documentation // > ```go // > var MocksSingle struct{Code func(p Params) (response *HighlightedCode, aborted bool, err error)} // > ``` Code func(p Params) (response *HighlightedCode, aborted bool, err error) -// ^^^^ definition 0.1.test `sg/inlinestruct`/MocksSingle:Code. +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/MocksSingle:Code. // documentation // > ```go -// > struct field Code func(p sg/inlinestruct.Params) (response *sg/inlinestruct.HighlightedCode, aborted bool, err error) +// > struct field Code func(p github.com/sourcegraph/scip-go/internal/testdata/inlinestruct.Params) (response *github.com/sourcegraph/scip-go/internal/testdata/inlinestruct.HighlightedCode, aborted bool, err error) // > ``` // ^ definition local 4 -// ^^^^^^ reference 0.1.test `sg/inlinestruct`/Params# +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/Params# // ^^^^^^^^ definition local 5 -// ^^^^^^^^^^^^^^^ reference 0.1.test `sg/inlinestruct`/HighlightedCode# +// ^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/HighlightedCode# // ^^^^^^^ definition local 6 // ^^^ definition local 7 } var ( okReply interface{} = "OK" -// ^^^^^^^ definition 0.1.test `sg/inlinestruct`/okReply. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/okReply. // documentation // > ```go // > var okReply interface{} // > ``` pongReply interface{} = "PONG" -// ^^^^^^^^^ definition 0.1.test `sg/inlinestruct`/pongReply. +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/inlinestruct`/pongReply. // documentation // > ```go // > var pongReply interface{} diff --git a/internal/testdata/snapshots/output/package-documentation/primary.go b/internal/testdata/snapshots/output/package-documentation/primary.go index e3ccebf..b6294ed 100755 --- a/internal/testdata/snapshots/output/package-documentation/primary.go +++ b/internal/testdata/snapshots/output/package-documentation/primary.go @@ -1,15 +1,15 @@ // This is documentation for this package. package packagedocumentation -// ^^^^^^^^^^^^^^^^^^^^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/ +// ^^^^^^^^^^^^^^^^^^^^ definition github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/ // documentation // > This is documentation for this package. -//⌄ enclosing_range_start github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/Exported(). +//⌄ enclosing_range_start github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/Exported(). func Exported() {} -// ^^^^^^^^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/Exported(). +// ^^^^^^^^ definition github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/Exported(). // documentation // > ```go // > func Exported() // > ``` -// ⌃ enclosing_range_end github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/Exported(). +// ⌃ enclosing_range_end github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/Exported(). diff --git a/internal/testdata/snapshots/output/package-documentation/secondary.go b/internal/testdata/snapshots/output/package-documentation/secondary.go index dda5e1f..d8a9c68 100755 --- a/internal/testdata/snapshots/output/package-documentation/secondary.go +++ b/internal/testdata/snapshots/output/package-documentation/secondary.go @@ -1,12 +1,12 @@ package packagedocumentation -// ^^^^^^^^^^^^^^^^^^^^ reference github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/ +// ^^^^^^^^^^^^^^^^^^^^ reference github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/ -//⌄ enclosing_range_start github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/AlsoExporter(). +//⌄ enclosing_range_start github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/AlsoExporter(). func AlsoExporter() {} -// ^^^^^^^^^^^^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/AlsoExporter(). +// ^^^^^^^^^^^^ definition github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/AlsoExporter(). // documentation // > ```go // > func AlsoExporter() // > ``` -// ⌃ enclosing_range_end github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/AlsoExporter(). +// ⌃ enclosing_range_end github.com/sourcegraph/scip-go 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/package-documentation`/AlsoExporter(). diff --git a/internal/testdata/snapshots/output/replace-directives/replace_directives.go b/internal/testdata/snapshots/output/replace-directives/replace_directives.go index 4b564b6..95ca290 100755 --- a/internal/testdata/snapshots/output/replace-directives/replace_directives.go +++ b/internal/testdata/snapshots/output/replace-directives/replace_directives.go @@ -1,5 +1,5 @@ package replacers -// ^^^^^^^^^ definition 0.1.test `sg/replace-directives`/ +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/replace-directives`/ // documentation // > package replacers @@ -11,9 +11,9 @@ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference github.com/sourcegraph/gologin c6f1b62954d8 `github.com/dghubble/gologin`/ ) -//⌄ enclosing_range_start 0.1.test `sg/replace-directives`/Something(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/replace-directives`/Something(). func Something() { -// ^^^^^^^^^ definition 0.1.test `sg/replace-directives`/Something(). +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/replace-directives`/Something(). // documentation // > ```go // > func Something() @@ -24,5 +24,5 @@ // ^^^^^^^ reference github.com/sourcegraph/gologin c6f1b62954d8 `github.com/dghubble/gologin`/ // ^^^^^^^^^^^^^^^^^^^ reference github.com/sourcegraph/gologin c6f1b62954d8 `github.com/dghubble/gologin`/DefaultCookieConfig. } -//⌃ enclosing_range_end 0.1.test `sg/replace-directives`/Something(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/replace-directives`/Something(). diff --git a/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/cleanup.go b/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/cleanup.go index cac051d..d2690cf 100755 --- a/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/cleanup.go +++ b/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/cleanup.go @@ -1,12 +1,12 @@ package server -// ^^^^^^ reference 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/ +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/ -//⌄ enclosing_range_start 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/LiterallyAnything(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/LiterallyAnything(). func LiterallyAnything() {} -// ^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/LiterallyAnything(). +// ^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/LiterallyAnything(). // documentation // > ```go // > func LiterallyAnything() // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/LiterallyAnything(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/LiterallyAnything(). diff --git a/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/cleanup_test.go b/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/cleanup_test.go index 8a413ff..2677064 100755 --- a/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/cleanup_test.go +++ b/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/cleanup_test.go @@ -1,12 +1,12 @@ package server -// ^^^^^^ reference 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/ +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/ import "testing" // ^^^^^^^ reference github.com/golang/go/src go1.22 testing/ -//⌄ enclosing_range_start 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/TestStuff(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/TestStuff(). func TestStuff(t *testing.T) { -// ^^^^^^^^^ definition 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/TestStuff(). +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/TestStuff(). // documentation // > ```go // > func TestStuff(t *T) @@ -20,10 +20,10 @@ // ^^^^ definition local 2 runCmd(t, wd, "git", "init", repo) -// ^^^^^^ reference 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/runCmd(). +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/runCmd(). // ^ reference local 0 // ^^ reference local 1 // ^^^^ reference local 2 } -//⌃ enclosing_range_end 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/TestStuff(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/TestStuff(). diff --git a/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/server.go b/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/server.go index e72bff5..212c6e2 100755 --- a/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/server.go +++ b/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/server.go @@ -1,14 +1,14 @@ package server -// ^^^^^^ definition 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/ +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/ // documentation // > package server -//⌄ enclosing_range_start 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/AnythingAtAll(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/AnythingAtAll(). func AnythingAtAll() {} -// ^^^^^^^^^^^^^ definition 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/AnythingAtAll(). +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/AnythingAtAll(). // documentation // > ```go // > func AnythingAtAll() // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/AnythingAtAll(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/AnythingAtAll(). diff --git a/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/server_test.go b/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/server_test.go index 9270cd0..d297c8f 100755 --- a/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/server_test.go +++ b/internal/testdata/snapshots/output/sharedtestmodule/cmd/gitserver/server/server_test.go @@ -1,12 +1,12 @@ package server -// ^^^^^^ reference 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/ +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/ import "testing" // ^^^^^^^ reference github.com/golang/go/src go1.22 testing/ -//⌄ enclosing_range_start 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/TestExecRequest(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/TestExecRequest(). func TestExecRequest(t *testing.T) { -// ^^^^^^^^^^^^^^^ definition 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/TestExecRequest(). +// ^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/TestExecRequest(). // documentation // > ```go // > func TestExecRequest(t *T) @@ -18,11 +18,11 @@ // ^ reference local 0 // ^^^ reference github.com/golang/go/src go1.22 testing/common#Log(). } -//⌃ enclosing_range_end 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/TestExecRequest(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/TestExecRequest(). -//⌄ enclosing_range_start 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/runCmd(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/runCmd(). func runCmd(t *testing.T, dir string, cmd string, arg ...string) {} -// ^^^^^^ definition 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/runCmd(). +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/runCmd(). // documentation // > ```go // > func runCmd(t *T, dir string, cmd string, arg ...string) @@ -33,5 +33,5 @@ // ^^^ definition local 2 // ^^^ definition local 3 // ^^^ definition local 4 -// ⌃ enclosing_range_end 0.1.test `sg/sharedtestmodule/cmd/gitserver/server`/runCmd(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/sharedtestmodule/cmd/gitserver/server`/runCmd(). diff --git a/internal/testdata/snapshots/output/switches/switches.go b/internal/testdata/snapshots/output/switches/switches.go index afd3338..fbfac63 100755 --- a/internal/testdata/snapshots/output/switches/switches.go +++ b/internal/testdata/snapshots/output/switches/switches.go @@ -1,11 +1,11 @@ package switches -// ^^^^^^^^ definition 0.1.test `sg/switches`/ +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/switches`/ // documentation // > package switches // CustomSwitch does the things in a switch type CustomSwitch struct{} -// ^^^^^^^^^^^^ definition 0.1.test `sg/switches`/CustomSwitch# +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/switches`/CustomSwitch# // documentation // > ```go // > type CustomSwitch struct @@ -18,22 +18,22 @@ // > ``` // Something does some things... and stuff -//⌄ enclosing_range_start 0.1.test `sg/switches`/CustomSwitch#Something(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/switches`/CustomSwitch#Something(). func (c *CustomSwitch) Something() bool { return false } // ^ definition local 0 -// ^^^^^^^^^^^^ reference 0.1.test `sg/switches`/CustomSwitch# -// ^^^^^^^^^ definition 0.1.test `sg/switches`/CustomSwitch#Something(). +// ^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/switches`/CustomSwitch# +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/switches`/CustomSwitch#Something(). // documentation // > ```go // > func (*CustomSwitch).Something() bool // > ``` // documentation // > Something does some things... and stuff -// ⌃ enclosing_range_end 0.1.test `sg/switches`/CustomSwitch#Something(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/switches`/CustomSwitch#Something(). -//⌄ enclosing_range_start 0.1.test `sg/switches`/Switch(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/switches`/Switch(). func Switch(interfaceValue interface{}) bool { -// ^^^^^^ definition 0.1.test `sg/switches`/Switch(). +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/switches`/Switch(). // documentation // > ```go // > func Switch(interfaceValue interface{}) bool @@ -57,17 +57,17 @@ // > bool // > ``` case CustomSwitch: -// ^^^^^^^^^^^^ reference 0.1.test `sg/switches`/CustomSwitch# +// ^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/switches`/CustomSwitch# return concreteValue.Something() // ^^^^^^^^^^^^^ reference local 2 // override_documentation // > ```go -// > sg/switches.CustomSwitch +// > github.com/sourcegraph/scip-go/internal/testdata/switches.CustomSwitch // > ``` -// ^^^^^^^^^ reference 0.1.test `sg/switches`/CustomSwitch#Something(). +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/switches`/CustomSwitch#Something(). default: return false } } -//⌃ enclosing_range_end 0.1.test `sg/switches`/Switch(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/switches`/Switch(). diff --git a/internal/testdata/snapshots/output/testdata/anonymous_structs.go b/internal/testdata/snapshots/output/testdata/anonymous_structs.go index d944bc4..9290da6 100755 --- a/internal/testdata/snapshots/output/testdata/anonymous_structs.go +++ b/internal/testdata/snapshots/output/testdata/anonymous_structs.go @@ -1,11 +1,11 @@ package testdata -// ^^^^^^^^ reference 0.1.test `sg/testdata`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ import "fmt" // ^^^ reference github.com/golang/go/src go1.22 fmt/ type TypeContainingAnonymousStructs struct { -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/TypeContainingAnonymousStructs# +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs# // documentation // > ```go // > type TypeContainingAnonymousStructs struct @@ -28,43 +28,43 @@ // > } // > ``` a, b struct { -// ^ definition 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a. // documentation // > ```go // > struct field a struct{x int; y string} // > ``` -// ^ definition 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b. // documentation // > ```go // > struct field b struct{x int; y string} // > ``` x int -// ^ definition 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b.x. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b.x. // documentation // > ```go // > struct field x int // > ``` y string -// ^ definition 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b.y. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b.y. // documentation // > ```go // > struct field y string // > ``` } c struct { -// ^ definition 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#c. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#c. // documentation // > ```go // > struct field c struct{X int; Y string} // > ``` X int -// ^ definition 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#c.X. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#c.X. // documentation // > ```go // > struct field X int // > ``` Y string -// ^ definition 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#c.Y. +// ^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#c.Y. // documentation // > ```go // > struct field Y string @@ -72,9 +72,9 @@ } } -//⌄ enclosing_range_start 0.1.test `sg/testdata`/funcContainingAnonymousStructs(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/funcContainingAnonymousStructs(). func funcContainingAnonymousStructs() { -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/funcContainingAnonymousStructs(). +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/funcContainingAnonymousStructs(). // documentation // > ```go // > func funcContainingAnonymousStructs() @@ -109,31 +109,31 @@ var f TypeContainingAnonymousStructs // ^ definition local 6 -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs# +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs# f.a.x = 3 // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b.x. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b.x. f.a.y = "three" // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b.y. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b.y. f.b.x = 4 // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b.x. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b.x. f.b.y = "four" // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b.y. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b.y. f.c.X = 5 // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#c. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#c.X. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#c. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#c.X. f.c.Y = "five" // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#c. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#c.Y. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#c. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#c.Y. fmt.Printf("> %s, %s\n", d.x, d.y) // ^^^ reference github.com/golang/go/src go1.22 fmt/ @@ -154,29 +154,29 @@ // ^^^ reference github.com/golang/go/src go1.22 fmt/ // ^^^^^^ reference github.com/golang/go/src go1.22 fmt/Printf(). // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b.x. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b.x. // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b.y. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b.y. fmt.Printf("> %s, %s\n", f.b.x, f.b.y) // ^^^ reference github.com/golang/go/src go1.22 fmt/ // ^^^^^^ reference github.com/golang/go/src go1.22 fmt/Printf(). // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b.x. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b.x. // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#a.b.y. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#a.b.y. fmt.Printf("> %s, %s\n", f.c.X, f.c.Y) // ^^^ reference github.com/golang/go/src go1.22 fmt/ // ^^^^^^ reference github.com/golang/go/src go1.22 fmt/Printf(). // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#c. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#c.X. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#c. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#c.X. // ^ reference local 6 -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#c. -// ^ reference 0.1.test `sg/testdata`/TypeContainingAnonymousStructs#c.Y. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#c. +// ^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TypeContainingAnonymousStructs#c.Y. } -//⌃ enclosing_range_end 0.1.test `sg/testdata`/funcContainingAnonymousStructs(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/funcContainingAnonymousStructs(). diff --git a/internal/testdata/snapshots/output/testdata/cmd/minimal_main/minimal_main.go b/internal/testdata/snapshots/output/testdata/cmd/minimal_main/minimal_main.go index 9f1c327..0e1565d 100755 --- a/internal/testdata/snapshots/output/testdata/cmd/minimal_main/minimal_main.go +++ b/internal/testdata/snapshots/output/testdata/cmd/minimal_main/minimal_main.go @@ -1,10 +1,10 @@ package main -// ^^^^ definition 0.1.test `sg/testdata/cmd/minimal_main`/ +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/cmd/minimal_main`/ // documentation // > package main type User struct { -// ^^^^ definition 0.1.test `sg/testdata/cmd/minimal_main`/User# +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/cmd/minimal_main`/User# // documentation // > ```go // > type User struct @@ -17,12 +17,12 @@ // > } // > ``` Id, Name string -// ^^ definition 0.1.test `sg/testdata/cmd/minimal_main`/User#Id. +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/cmd/minimal_main`/User#Id. // documentation // > ```go // > struct field Id string // > ``` -// ^^^^ definition 0.1.test `sg/testdata/cmd/minimal_main`/User#Name. +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/cmd/minimal_main`/User#Name. // documentation // > ```go // > struct field Name string @@ -30,7 +30,7 @@ } type UserResource struct{} -// ^^^^^^^^^^^^ definition 0.1.test `sg/testdata/cmd/minimal_main`/UserResource# +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/cmd/minimal_main`/UserResource# // documentation // > ```go // > type UserResource struct @@ -40,12 +40,12 @@ // > struct{} // > ``` -//⌄ enclosing_range_start 0.1.test `sg/testdata/cmd/minimal_main`/main(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/cmd/minimal_main`/main(). func main() {} -// ^^^^ definition 0.1.test `sg/testdata/cmd/minimal_main`/main(). +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/cmd/minimal_main`/main(). // documentation // > ```go // > func main() // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/testdata/cmd/minimal_main`/main(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/cmd/minimal_main`/main(). diff --git a/internal/testdata/snapshots/output/testdata/conflicting_test_symbols/sandbox_unsupported_test.go b/internal/testdata/snapshots/output/testdata/conflicting_test_symbols/sandbox_unsupported_test.go index 128caac..e6b1418 100755 --- a/internal/testdata/snapshots/output/testdata/conflicting_test_symbols/sandbox_unsupported_test.go +++ b/internal/testdata/snapshots/output/testdata/conflicting_test_symbols/sandbox_unsupported_test.go @@ -2,7 +2,7 @@ // +build !linux,!windows,!freebsd package osl -// ^^^ definition 0.1.test `sg/testdata/conflicting_test_symbols`/ +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/conflicting_test_symbols`/ // documentation // > package osl @@ -14,7 +14,7 @@ ) var ErrNotImplemented = errors.New("not implemented") -// ^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata/conflicting_test_symbols`/ErrNotImplemented. +// ^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/conflicting_test_symbols`/ErrNotImplemented. // documentation // > ```go // > var ErrNotImplemented error @@ -22,9 +22,9 @@ // ^^^^^^ reference github.com/golang/go/src go1.22 errors/ // ^^^ reference github.com/golang/go/src go1.22 errors/New(). -//⌄ enclosing_range_start 0.1.test `sg/testdata/conflicting_test_symbols`/newKey(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/conflicting_test_symbols`/newKey(). func newKey(t *testing.T) (string, error) { -// ^^^^^^ definition 0.1.test `sg/testdata/conflicting_test_symbols`/newKey(). +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/conflicting_test_symbols`/newKey(). // documentation // > ```go // > func newKey(t *T) (string, error) @@ -33,13 +33,13 @@ // ^^^^^^^ reference github.com/golang/go/src go1.22 testing/ // ^ reference github.com/golang/go/src go1.22 testing/T# return "", ErrNotImplemented -// ^^^^^^^^^^^^^^^^^ reference 0.1.test `sg/testdata/conflicting_test_symbols`/ErrNotImplemented. +// ^^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/conflicting_test_symbols`/ErrNotImplemented. } -//⌃ enclosing_range_end 0.1.test `sg/testdata/conflicting_test_symbols`/newKey(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/conflicting_test_symbols`/newKey(). -//⌄ enclosing_range_start 0.1.test `sg/testdata/conflicting_test_symbols`/verifySandbox(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/conflicting_test_symbols`/verifySandbox(). func verifySandbox(t *testing.T, s string) { -// ^^^^^^^^^^^^^ definition 0.1.test `sg/testdata/conflicting_test_symbols`/verifySandbox(). +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/conflicting_test_symbols`/verifySandbox(). // documentation // > ```go // > func verifySandbox(t *T, s string) @@ -50,5 +50,5 @@ // ^ definition local 2 return } -//⌃ enclosing_range_end 0.1.test `sg/testdata/conflicting_test_symbols`/verifySandbox(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/conflicting_test_symbols`/verifySandbox(). diff --git a/internal/testdata/snapshots/output/testdata/data.go b/internal/testdata/snapshots/output/testdata/data.go index a4fb5b4..fc220e6 100755 --- a/internal/testdata/snapshots/output/testdata/data.go +++ b/internal/testdata/snapshots/output/testdata/data.go @@ -1,5 +1,5 @@ package testdata -// ^^^^^^^^ definition 0.1.test `sg/testdata`/ +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ // documentation // > package testdata @@ -7,13 +7,13 @@ "context" // ^^^^^^^ reference github.com/golang/go/src go1.22 context/ - "sg/testdata/internal/secret" -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference 0.1.test `sg/testdata/internal/secret`/ + "github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret" +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret`/ ) // TestInterface is an interface used for testing. type TestInterface interface { -// ^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/TestInterface# +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestInterface# // documentation // > ```go // > type TestInterface interface @@ -28,7 +28,7 @@ // > ``` // Do does a test thing. Do(ctx context.Context, data string) (score int, _ error) -// ^^ definition 0.1.test `sg/testdata`/TestInterface#Do. +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestInterface#Do. // documentation // > ```go // > func (TestInterface).Do(ctx Context, data string) (score int, _ error) @@ -43,7 +43,7 @@ type ( // TestStruct is a struct used for testing. TestStruct struct { -// ^^^^^^^^^^ definition 0.1.test `sg/testdata`/TestStruct# +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct# // documentation // > ```go // > type TestStruct struct @@ -65,53 +65,53 @@ // > ``` // SimpleA docs SimpleA int -// ^^^^^^^ definition 0.1.test `sg/testdata`/TestStruct#SimpleA. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#SimpleA. // documentation // > ```go // > struct field SimpleA int // > ``` // SimpleB docs SimpleB int -// ^^^^^^^ definition 0.1.test `sg/testdata`/TestStruct#SimpleB. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#SimpleB. // documentation // > ```go // > struct field SimpleB int // > ``` // SimpleC docs SimpleC int -// ^^^^^^^ definition 0.1.test `sg/testdata`/TestStruct#SimpleC. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#SimpleC. // documentation // > ```go // > struct field SimpleC int // > ``` FieldWithTag string `json:"tag"` -// ^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/TestStruct#FieldWithTag. +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#FieldWithTag. // documentation // > ```go // > struct field FieldWithTag string // > ``` FieldWithAnonymousType struct { -// ^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/TestStruct#FieldWithAnonymousType. +// ^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#FieldWithAnonymousType. // documentation // > ```go // > struct field FieldWithAnonymousType struct{NestedA string; NestedB string; NestedC string} // > ``` NestedA string -// ^^^^^^^ definition 0.1.test `sg/testdata`/TestStruct#FieldWithAnonymousType.NestedA. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#FieldWithAnonymousType.NestedA. // documentation // > ```go // > struct field NestedA string // > ``` NestedB string -// ^^^^^^^ definition 0.1.test `sg/testdata`/TestStruct#FieldWithAnonymousType.NestedB. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#FieldWithAnonymousType.NestedB. // documentation // > ```go // > struct field NestedB string // > ``` // NestedC docs NestedC string -// ^^^^^^^ definition 0.1.test `sg/testdata`/TestStruct#FieldWithAnonymousType.NestedC. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#FieldWithAnonymousType.NestedC. // documentation // > ```go // > struct field NestedC string @@ -119,7 +119,7 @@ } EmptyStructField struct{} -// ^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/TestStruct#EmptyStructField. +// ^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#EmptyStructField. // documentation // > ```go // > struct field EmptyStructField struct{} @@ -127,7 +127,7 @@ } TestEmptyStruct struct{} -// ^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/TestEmptyStruct# +// ^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestEmptyStruct# // documentation // > ```go // > type TestEmptyStruct struct @@ -140,7 +140,7 @@ // Score is just a hardcoded number. const Score = uint64(42) -// ^^^^^ definition 0.1.test `sg/testdata`/Score. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Score. // documentation // > ```go // > const Score uint64 = 42 @@ -148,54 +148,54 @@ // documentation // > Score is just a hardcoded number. const secretScore = secret.SecretScore -// ^^^^^^^^^^^ definition 0.1.test `sg/testdata`/secretScore. +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/secretScore. // documentation // > ```go // > const secretScore uint64 = 43 // > ``` -// ^^^^^^ reference 0.1.test `sg/testdata/internal/secret`/ -// ^^^^^^^^^^^ reference 0.1.test `sg/testdata/internal/secret`/SecretScore. +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret`/ +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret`/SecretScore. const SomeString = "foobar" -// ^^^^^^^^^^ definition 0.1.test `sg/testdata`/SomeString. +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SomeString. // documentation // > ```go // > const SomeString untyped string = "foobar" // > ``` const LongString = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tincidunt viverra aliquam. Phasellus finibus, arcu eu commodo porta, dui quam dictum ante, nec porta enim leo quis felis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur luctus orci tortor, non condimentum arcu bibendum ut. Proin sit amet vulputate lorem, ut egestas arcu. Curabitur quis sagittis mi. Aenean elit sem, imperdiet ut risus eget, varius varius erat.\nNullam lobortis tortor sed sodales consectetur. Aenean condimentum vehicula elit, eget interdum ante finibus nec. Mauris mollis, nulla eu vehicula rhoncus, eros lectus viverra tellus, ac hendrerit quam massa et felis. Nunc vestibulum diam a facilisis sollicitudin. Aenean nec varius metus. Sed nec diam nibh. Ut erat erat, suscipit et ante eget, tincidunt condimentum orci. Aenean nec facilisis augue, ac sodales ex. Nulla dictum hendrerit tempus. Aliquam fringilla tortor in massa molestie, quis bibendum nulla ullamcorper. Suspendisse congue laoreet elit, vitae consectetur orci facilisis non. Aliquam tempus ultricies sapien, rhoncus tincidunt nisl tincidunt eget. Aliquam nisi ante, rutrum eget viverra imperdiet, congue ut nunc. Donec mollis sed tellus vel placerat. Sed mi ex, fringilla a fermentum a, tincidunt eget lectus.\nPellentesque lacus nibh, accumsan eget feugiat nec, gravida eget urna. Donec quam velit, imperdiet in consequat eget, ultricies eget nunc. Curabitur interdum vel sem et euismod. Donec sed vulputate odio, sit amet bibendum tellus. Integer pellentesque nunc eu turpis cursus, vestibulum sodales ipsum posuere. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Ut at vestibulum sapien. In hac habitasse platea dictumst. Nullam sed lobortis urna, non bibendum ipsum. Sed in sapien quis purus semper fringilla. Integer ut egestas nulla, eu ornare lectus. Maecenas quis sapien condimentum, dignissim urna quis, hendrerit neque. Donec cursus sit amet metus eu mollis.\nSed scelerisque vitae odio non egestas. Cras hendrerit tortor mauris. Aenean quis imperdiet nulla, a viverra purus. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent finibus faucibus orci, sed ultrices justo iaculis ut. Ut libero massa, condimentum at elit non, fringilla iaculis quam. Sed sit amet ipsum placerat, tincidunt sem in, efficitur lacus. Curabitur ligula orci, tempus ut magna eget, sodales tristique odio.\nPellentesque in libero ac risus pretium ultrices. In hac habitasse platea dictumst. Curabitur a quam sed orci tempus luctus. Integer commodo nec odio quis consequat. Aenean vitae dapibus augue, nec dictum lectus. Etiam sit amet leo diam. Duis eu ligula venenatis, fermentum lacus vel, interdum odio. Vivamus sit amet libero vitae elit interdum cursus et eu erat. Cras interdum augue sit amet ex aliquet tempor. Praesent dolor nisl, convallis bibendum mauris a, euismod commodo ante. Phasellus non ipsum condimentum, molestie dolor quis, pretium nisi. Mauris augue urna, fermentum ut lacinia a, efficitur vitae odio. Praesent finibus nisl et dolor luctus faucibus. Donec eget lectus sed mi porttitor placerat ac eu odio." -// ^^^^^^^^^^ definition 0.1.test `sg/testdata`/LongString. +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/LongString. // documentation // > ```go // > const LongString untyped string = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tincidu... // > ``` const ConstMath = 1 + (2+3)*5 -// ^^^^^^^^^ definition 0.1.test `sg/testdata`/ConstMath. +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ConstMath. // documentation // > ```go // > const ConstMath untyped int = 26 // > ``` type StringAlias string -// ^^^^^^^^^^^ definition 0.1.test `sg/testdata`/StringAlias# +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/StringAlias# // documentation // > ```go // > string // > ``` const AliasedString StringAlias = "foobar" -// ^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/AliasedString. +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/AliasedString. // documentation // > ```go // > const AliasedString StringAlias = "foobar" // > ``` -// ^^^^^^^^^^^ reference 0.1.test `sg/testdata`/StringAlias# +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/StringAlias# // Doer is similar to the test interface (but not the same). -//⌄ enclosing_range_start 0.1.test `sg/testdata`/TestStruct#Doer(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#Doer(). func (ts *TestStruct) Doer(ctx context.Context, data string) (score int, err error) { // ^^ definition local 3 -// ^^^^^^^^^^ reference 0.1.test `sg/testdata`/TestStruct# -// ^^^^ definition 0.1.test `sg/testdata`/TestStruct#Doer(). +// ^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct# +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#Doer(). // documentation // > ```go // > func (*TestStruct).Doer(ctx Context, data string) (score int, err error) @@ -209,16 +209,16 @@ // ^^^^^ definition local 6 // ^^^ definition local 7 return Score, nil -// ^^^^^ reference 0.1.test `sg/testdata`/Score. +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Score. } -//⌃ enclosing_range_end 0.1.test `sg/testdata`/TestStruct#Doer(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestStruct#Doer(). // StructTagRegression is a struct that caused panic in the wild. Added here to // support a regression test. // // See https://github.com/tal-tech/go-zero/blob/11dd3d75ecceaa3f5772024fb3f26dec1ada8e9c/core/mapping/unmarshaler_test.go#L2272. type StructTagRegression struct { -// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/StructTagRegression# +// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/StructTagRegression# // documentation // > ```go // > type StructTagRegression struct @@ -235,7 +235,7 @@ // > } // > ``` Value int `key:",range=[:}"` -// ^^^^^ definition 0.1.test `sg/testdata`/StructTagRegression#Value. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/StructTagRegression#Value. // documentation // > ```go // > struct field Value int @@ -243,7 +243,7 @@ } type TestEqualsStruct = struct { -// ^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/TestEqualsStruct# +// ^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestEqualsStruct# // documentation // > ```go // > type TestEqualsStruct = struct @@ -255,7 +255,7 @@ // > } // > ``` Value int -// ^^^^^ definition 0.1.test `sg/testdata`/TestEqualsStruct#Value. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TestEqualsStruct#Value. // documentation // > ```go // > struct field Value int @@ -263,7 +263,7 @@ } type ShellStruct struct { -// ^^^^^^^^^^^ definition 0.1.test `sg/testdata`/ShellStruct# +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ShellStruct# // documentation // > ```go // > type ShellStruct struct @@ -278,20 +278,20 @@ // so that we grab the correct one in our unit // tests. InnerStruct -// ^^^^^^^^^^^ definition 0.1.test `sg/testdata`/ShellStruct#InnerStruct. +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ShellStruct#InnerStruct. // documentation // > ```go -// > struct field InnerStruct sg/testdata.InnerStruct +// > struct field InnerStruct github.com/sourcegraph/scip-go/internal/testdata/testdata.InnerStruct // > ``` // documentation // > Ensure this field comes before the definition // > so that we grab the correct one in our unit // > tests. -// ^^^^^^^^^^^ reference 0.1.test `sg/testdata`/InnerStruct# +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InnerStruct# } type InnerStruct struct{} -// ^^^^^^^^^^^ definition 0.1.test `sg/testdata`/InnerStruct# +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InnerStruct# // documentation // > ```go // > type InnerStruct struct diff --git a/internal/testdata/snapshots/output/testdata/duplicate_path_id/main.go b/internal/testdata/snapshots/output/testdata/duplicate_path_id/main.go index b647f4a..db3a6d5 100755 --- a/internal/testdata/snapshots/output/testdata/duplicate_path_id/main.go +++ b/internal/testdata/snapshots/output/testdata/duplicate_path_id/main.go @@ -1,8 +1,8 @@ package gosrc -// ^^^^^ reference 0.1.test `sg/testdata/duplicate_path_id`/ +// ^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/ type importMeta struct{} -// ^^^^^^^^^^ definition 0.1.test `sg/testdata/duplicate_path_id`/importMeta# +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/importMeta# // documentation // > ```go // > type importMeta struct @@ -13,7 +13,7 @@ // > ``` type sourceMeta struct{} -// ^^^^^^^^^^ definition 0.1.test `sg/testdata/duplicate_path_id`/sourceMeta# +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/sourceMeta# // documentation // > ```go // > type sourceMeta struct @@ -23,41 +23,41 @@ // > struct{} // > ``` -//⌄ enclosing_range_start 0.1.test `sg/testdata/duplicate_path_id`/fetchMeta(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/fetchMeta(). func fetchMeta() (string, *importMeta, *sourceMeta) { -// ^^^^^^^^^ definition 0.1.test `sg/testdata/duplicate_path_id`/fetchMeta(). +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/fetchMeta(). // documentation // > ```go // > func fetchMeta() (string, *importMeta, *sourceMeta) // > ``` -// ^^^^^^^^^^ reference 0.1.test `sg/testdata/duplicate_path_id`/importMeta# -// ^^^^^^^^^^ reference 0.1.test `sg/testdata/duplicate_path_id`/sourceMeta# +// ^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/importMeta# +// ^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/sourceMeta# panic("hmm") } -//⌃ enclosing_range_end 0.1.test `sg/testdata/duplicate_path_id`/fetchMeta(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/fetchMeta(). -//⌄ enclosing_range_start 0.1.test `sg/testdata/duplicate_path_id`/init(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). func init() {} -// ^^^^ definition 0.1.test `sg/testdata/duplicate_path_id`/init(). +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). // documentation // > ```go // > func init() // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/testdata/duplicate_path_id`/init(). -//⌄ enclosing_range_start 0.1.test `sg/testdata/duplicate_path_id`/init(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). func init() {} -// ^^^^ definition 0.1.test `sg/testdata/duplicate_path_id`/init(). +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). // documentation // > ```go // > func init() // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/testdata/duplicate_path_id`/init(). -//⌄ enclosing_range_start 0.1.test `sg/testdata/duplicate_path_id`/init(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). func init() {} -// ^^^^ definition 0.1.test `sg/testdata/duplicate_path_id`/init(). +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). // documentation // > ```go // > func init() // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/testdata/duplicate_path_id`/init(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). diff --git a/internal/testdata/snapshots/output/testdata/duplicate_path_id/two.go b/internal/testdata/snapshots/output/testdata/duplicate_path_id/two.go index f85af41..8c7e741 100755 --- a/internal/testdata/snapshots/output/testdata/duplicate_path_id/two.go +++ b/internal/testdata/snapshots/output/testdata/duplicate_path_id/two.go @@ -1,14 +1,14 @@ package gosrc -// ^^^^^ definition 0.1.test `sg/testdata/duplicate_path_id`/ +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/ // documentation // > package gosrc -//⌄ enclosing_range_start 0.1.test `sg/testdata/duplicate_path_id`/init(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). func init() {} -// ^^^^ definition 0.1.test `sg/testdata/duplicate_path_id`/init(). +// ^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). // documentation // > ```go // > func init() // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/testdata/duplicate_path_id`/init(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/duplicate_path_id`/init(). diff --git a/internal/testdata/snapshots/output/testdata/external_composite.go b/internal/testdata/snapshots/output/testdata/external_composite.go index 4591127..3ba5090 100755 --- a/internal/testdata/snapshots/output/testdata/external_composite.go +++ b/internal/testdata/snapshots/output/testdata/external_composite.go @@ -1,11 +1,11 @@ package testdata -// ^^^^^^^^ reference 0.1.test `sg/testdata`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ import "net/http" // ^^^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/ type NestedHandler struct { -// ^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/NestedHandler# +// ^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/NestedHandler# // documentation // > ```go // > type NestedHandler struct @@ -20,14 +20,14 @@ // relationship github.com/golang/go/src go1.22 `net/http`/Handler# implementation http.Handler // ^^^^ reference github.com/golang/go/src go1.22 `net/http`/ -// ^^^^^^^ definition 0.1.test `sg/testdata`/NestedHandler#Handler. +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/NestedHandler#Handler. // documentation // > ```go // > struct field Handler net/http.Handler // > ``` // ^^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/Handler# Other int -// ^^^^^ definition 0.1.test `sg/testdata`/NestedHandler#Other. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/NestedHandler#Other. // documentation // > ```go // > struct field Other int diff --git a/internal/testdata/snapshots/output/testdata/implementations.go b/internal/testdata/snapshots/output/testdata/implementations.go index b67c12c..dd57573 100755 --- a/internal/testdata/snapshots/output/testdata/implementations.go +++ b/internal/testdata/snapshots/output/testdata/implementations.go @@ -1,8 +1,8 @@ package testdata -// ^^^^^^^^ reference 0.1.test `sg/testdata`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ type I0 interface{} -// ^^ definition 0.1.test `sg/testdata`/I0# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I0# // documentation // > ```go // > type I0 interface @@ -13,7 +13,7 @@ // > ``` type I1 interface { -// ^^ definition 0.1.test `sg/testdata`/I1# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I1# // documentation // > ```go // > type I1 interface @@ -25,7 +25,7 @@ // > } // > ``` F1() -// ^^ definition 0.1.test `sg/testdata`/I1#F1. +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I1#F1. // documentation // > ```go // > func (I1).F1() @@ -33,7 +33,7 @@ } type I2 interface { -// ^^ definition 0.1.test `sg/testdata`/I2# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I2# // documentation // > ```go // > type I2 interface @@ -45,7 +45,7 @@ // > } // > ``` F2() -// ^^ definition 0.1.test `sg/testdata`/I2#F2. +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I2#F2. // documentation // > ```go // > func (I2).F2() @@ -53,74 +53,74 @@ } type T1 int -// ^^ definition 0.1.test `sg/testdata`/T1# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T1# // documentation // > ```go // > int // > ``` -// relationship 0.1.test `sg/testdata`/I1# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I1# implementation -//⌄ enclosing_range_start 0.1.test `sg/testdata`/T1#F1(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T1#F1(). func (r T1) F1() {} // ^ definition local 0 -// ^^ reference 0.1.test `sg/testdata`/T1# -// ^^ definition 0.1.test `sg/testdata`/T1#F1(). +// ^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T1# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T1#F1(). // documentation // > ```go // > func (T1).F1() // > ``` -// relationship 0.1.test `sg/testdata`/I1#F1. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/T1#F1(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I1#F1. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T1#F1(). type T2 int -// ^^ definition 0.1.test `sg/testdata`/T2# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T2# // documentation // > ```go // > int // > ``` -// relationship 0.1.test `sg/testdata`/I1# implementation -// relationship 0.1.test `sg/testdata`/I2# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I1# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I2# implementation -//⌄ enclosing_range_start 0.1.test `sg/testdata`/T2#F1(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T2#F1(). func (r T2) F1() {} // ^ definition local 1 -// ^^ reference 0.1.test `sg/testdata`/T2# -// ^^ definition 0.1.test `sg/testdata`/T2#F1(). +// ^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T2# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T2#F1(). // documentation // > ```go // > func (T2).F1() // > ``` -// relationship 0.1.test `sg/testdata`/I1#F1. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/T2#F1(). -//⌄ enclosing_range_start 0.1.test `sg/testdata`/T2#F2(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I1#F1. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T2#F1(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T2#F2(). func (r T2) F2() {} // ^ definition local 2 -// ^^ reference 0.1.test `sg/testdata`/T2# -// ^^ definition 0.1.test `sg/testdata`/T2#F2(). +// ^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T2# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T2#F2(). // documentation // > ```go // > func (T2).F2() // > ``` -// relationship 0.1.test `sg/testdata`/I2#F2. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/T2#F2(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I2#F2. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T2#F2(). type A1 = T1 -// ^^ definition 0.1.test `sg/testdata`/A1# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/A1# // documentation // > ```go // > int // > ``` -// ^^ reference 0.1.test `sg/testdata`/T1# +// ^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/T1# type A12 = A1 -// ^^^ definition 0.1.test `sg/testdata`/A12# +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/A12# // documentation // > ```go // > int // > ``` -// ^^ reference 0.1.test `sg/testdata`/A1# +// ^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/A1# type InterfaceWithNonExportedMethod interface { -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/InterfaceWithNonExportedMethod# +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithNonExportedMethod# // documentation // > ```go // > type InterfaceWithNonExportedMethod interface @@ -132,7 +132,7 @@ // > } // > ``` nonExportedMethod() -// ^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/InterfaceWithNonExportedMethod#nonExportedMethod. +// ^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithNonExportedMethod#nonExportedMethod. // documentation // > ```go // > func (InterfaceWithNonExportedMethod).nonExportedMethod() @@ -140,7 +140,7 @@ } type InterfaceWithExportedMethod interface { -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/InterfaceWithExportedMethod# +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithExportedMethod# // documentation // > ```go // > type InterfaceWithExportedMethod interface @@ -152,7 +152,7 @@ // > } // > ``` ExportedMethod() -// ^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/InterfaceWithExportedMethod#ExportedMethod. +// ^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithExportedMethod#ExportedMethod. // documentation // > ```go // > func (InterfaceWithExportedMethod).ExportedMethod() @@ -160,53 +160,53 @@ } type Foo int -// ^^^ definition 0.1.test `sg/testdata`/Foo# +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo# // documentation // > ```go // > int // > ``` // relationship github.com/golang/go/src go1.22 io/Closer# implementation -// relationship 0.1.test `sg/testdata`/I3# implementation -// relationship 0.1.test `sg/testdata`/InterfaceWithExportedMethod# implementation -// relationship 0.1.test `sg/testdata`/InterfaceWithNonExportedMethod# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I3# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithExportedMethod# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithNonExportedMethod# implementation -//⌄ enclosing_range_start 0.1.test `sg/testdata`/Foo#nonExportedMethod(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo#nonExportedMethod(). func (r Foo) nonExportedMethod() {} // ^ definition local 3 -// ^^^ reference 0.1.test `sg/testdata`/Foo# -// ^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/Foo#nonExportedMethod(). +// ^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo# +// ^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo#nonExportedMethod(). // documentation // > ```go // > func (Foo).nonExportedMethod() // > ``` -// relationship 0.1.test `sg/testdata`/InterfaceWithNonExportedMethod#nonExportedMethod. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/Foo#nonExportedMethod(). -//⌄ enclosing_range_start 0.1.test `sg/testdata`/Foo#ExportedMethod(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithNonExportedMethod#nonExportedMethod. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo#nonExportedMethod(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo#ExportedMethod(). func (r Foo) ExportedMethod() {} // ^ definition local 4 -// ^^^ reference 0.1.test `sg/testdata`/Foo# -// ^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/Foo#ExportedMethod(). +// ^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo# +// ^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo#ExportedMethod(). // documentation // > ```go // > func (Foo).ExportedMethod() // > ``` -// relationship 0.1.test `sg/testdata`/InterfaceWithExportedMethod#ExportedMethod. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/Foo#ExportedMethod(). -//⌄ enclosing_range_start 0.1.test `sg/testdata`/Foo#Close(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithExportedMethod#ExportedMethod. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo#ExportedMethod(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo#Close(). func (r Foo) Close() error { return nil } // ^ definition local 5 -// ^^^ reference 0.1.test `sg/testdata`/Foo# -// ^^^^^ definition 0.1.test `sg/testdata`/Foo#Close(). +// ^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo# +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo#Close(). // documentation // > ```go // > func (Foo).Close() error // > ``` // relationship github.com/golang/go/src go1.22 io/Closer#Close. implementation -// relationship 0.1.test `sg/testdata`/I3#Close. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/Foo#Close(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I3#Close. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Foo#Close(). type SharedOne interface { -// ^^^^^^^^^ definition 0.1.test `sg/testdata`/SharedOne# +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedOne# // documentation // > ```go // > type SharedOne interface @@ -219,13 +219,13 @@ // > } // > ``` Shared() -// ^^^^^^ definition 0.1.test `sg/testdata`/SharedOne#Shared. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedOne#Shared. // documentation // > ```go // > func (SharedOne).Shared() // > ``` Distinct() -// ^^^^^^^^ definition 0.1.test `sg/testdata`/SharedOne#Distinct. +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedOne#Distinct. // documentation // > ```go // > func (SharedOne).Distinct() @@ -233,7 +233,7 @@ } type SharedTwo interface { -// ^^^^^^^^^ definition 0.1.test `sg/testdata`/SharedTwo# +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedTwo# // documentation // > ```go // > type SharedTwo interface @@ -246,13 +246,13 @@ // > } // > ``` Shared() -// ^^^^^^ definition 0.1.test `sg/testdata`/SharedTwo#Shared. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedTwo#Shared. // documentation // > ```go // > func (SharedTwo).Shared() // > ``` Unique() -// ^^^^^^ definition 0.1.test `sg/testdata`/SharedTwo#Unique. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedTwo#Unique. // documentation // > ```go // > func (SharedTwo).Unique() @@ -260,7 +260,7 @@ } type Between struct{} -// ^^^^^^^ definition 0.1.test `sg/testdata`/Between# +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between# // documentation // > ```go // > type Between struct @@ -269,53 +269,53 @@ // > ```go // > struct{} // > ``` -// relationship 0.1.test `sg/testdata`/SharedOne# implementation -// relationship 0.1.test `sg/testdata`/SharedTwo# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedOne# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedTwo# implementation -//⌄ enclosing_range_start 0.1.test `sg/testdata`/Between#Shared(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between#Shared(). func (Between) Shared() {} -// ^^^^^^^ reference 0.1.test `sg/testdata`/Between# -// ^^^^^^ definition 0.1.test `sg/testdata`/Between#Shared(). +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between# +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between#Shared(). // documentation // > ```go // > func (Between).Shared() // > ``` -// relationship 0.1.test `sg/testdata`/SharedOne#Shared. implementation -// relationship 0.1.test `sg/testdata`/SharedTwo#Shared. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/Between#Shared(). -//⌄ enclosing_range_start 0.1.test `sg/testdata`/Between#Distinct(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedOne#Shared. implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedTwo#Shared. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between#Shared(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between#Distinct(). func (Between) Distinct() {} -// ^^^^^^^ reference 0.1.test `sg/testdata`/Between# -// ^^^^^^^^ definition 0.1.test `sg/testdata`/Between#Distinct(). +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between# +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between#Distinct(). // documentation // > ```go // > func (Between).Distinct() // > ``` -// relationship 0.1.test `sg/testdata`/SharedOne#Distinct. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/Between#Distinct(). -//⌄ enclosing_range_start 0.1.test `sg/testdata`/Between#Unique(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedOne#Distinct. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between#Distinct(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between#Unique(). func (Between) Unique() {} -// ^^^^^^^ reference 0.1.test `sg/testdata`/Between# -// ^^^^^^ definition 0.1.test `sg/testdata`/Between#Unique(). +// ^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between# +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between#Unique(). // documentation // > ```go // > func (Between).Unique() // > ``` -// relationship 0.1.test `sg/testdata`/SharedTwo#Unique. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/Between#Unique(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedTwo#Unique. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Between#Unique(). -//⌄ enclosing_range_start 0.1.test `sg/testdata`/shouldShow(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/shouldShow(). func shouldShow(shared SharedOne) { -// ^^^^^^^^^^ definition 0.1.test `sg/testdata`/shouldShow(). +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/shouldShow(). // documentation // > ```go // > func shouldShow(shared SharedOne) // > ``` // ^^^^^^ definition local 6 -// ^^^^^^^^^ reference 0.1.test `sg/testdata`/SharedOne# +// ^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedOne# shared.Shared() // ^^^^^^ reference local 6 -// ^^^^^^ reference 0.1.test `sg/testdata`/SharedOne#Shared. +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SharedOne#Shared. } -//⌃ enclosing_range_end 0.1.test `sg/testdata`/shouldShow(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/shouldShow(). diff --git a/internal/testdata/snapshots/output/testdata/implementations_embedded.go b/internal/testdata/snapshots/output/testdata/implementations_embedded.go index 74ddc35..ec1635a 100755 --- a/internal/testdata/snapshots/output/testdata/implementations_embedded.go +++ b/internal/testdata/snapshots/output/testdata/implementations_embedded.go @@ -1,11 +1,11 @@ package testdata -// ^^^^^^^^ reference 0.1.test `sg/testdata`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ import "io" // ^^ reference github.com/golang/go/src go1.22 io/ type I3 interface { -// ^^ definition 0.1.test `sg/testdata`/I3# +// ^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I3# // documentation // > ```go // > type I3 interface @@ -17,7 +17,7 @@ // > } // > ``` Close() error -// ^^^^^ definition 0.1.test `sg/testdata`/I3#Close. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I3#Close. // documentation // > ```go // > func (I3).Close() error @@ -25,7 +25,7 @@ } type TClose struct { -// ^^^^^^ definition 0.1.test `sg/testdata`/TClose# +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TClose# // documentation // > ```go // > type TClose struct @@ -37,10 +37,10 @@ // > } // > ``` // relationship github.com/golang/go/src go1.22 io/Closer# implementation -// relationship 0.1.test `sg/testdata`/I3# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/I3# implementation io.Closer // ^^ reference github.com/golang/go/src go1.22 io/ -// ^^^^^^ definition 0.1.test `sg/testdata`/TClose#Closer. +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TClose#Closer. // documentation // > ```go // > struct field Closer io.Closer diff --git a/internal/testdata/snapshots/output/testdata/implementations_methods.go b/internal/testdata/snapshots/output/testdata/implementations_methods.go index 2cbe659..4332de8 100755 --- a/internal/testdata/snapshots/output/testdata/implementations_methods.go +++ b/internal/testdata/snapshots/output/testdata/implementations_methods.go @@ -1,8 +1,8 @@ package testdata -// ^^^^^^^^ reference 0.1.test `sg/testdata`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ type InterfaceWithSingleMethod interface { -// ^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/InterfaceWithSingleMethod# +// ^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithSingleMethod# // documentation // > ```go // > type InterfaceWithSingleMethod interface @@ -14,7 +14,7 @@ // > } // > ``` SingleMethod() float64 -// ^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/InterfaceWithSingleMethod#SingleMethod. +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithSingleMethod#SingleMethod. // documentation // > ```go // > func (InterfaceWithSingleMethod).SingleMethod() float64 @@ -22,7 +22,7 @@ } type StructWithMethods struct{} -// ^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/StructWithMethods# +// ^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/StructWithMethods# // documentation // > ```go // > type StructWithMethods struct @@ -31,21 +31,21 @@ // > ```go // > struct{} // > ``` -// relationship 0.1.test `sg/testdata`/InterfaceWithSingleMethod# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithSingleMethod# implementation -//⌄ enclosing_range_start 0.1.test `sg/testdata`/StructWithMethods#SingleMethod(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/StructWithMethods#SingleMethod(). func (StructWithMethods) SingleMethod() float64 { return 5.0 } -// ^^^^^^^^^^^^^^^^^ reference 0.1.test `sg/testdata`/StructWithMethods# -// ^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/StructWithMethods#SingleMethod(). +// ^^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/StructWithMethods# +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/StructWithMethods#SingleMethod(). // documentation // > ```go // > func (StructWithMethods).SingleMethod() float64 // > ``` -// relationship 0.1.test `sg/testdata`/InterfaceWithSingleMethod#SingleMethod. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/StructWithMethods#SingleMethod(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithSingleMethod#SingleMethod. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/StructWithMethods#SingleMethod(). type InterfaceWithSingleMethodTwoImplementers interface { -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/InterfaceWithSingleMethodTwoImplementers# +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithSingleMethodTwoImplementers# // documentation // > ```go // > type InterfaceWithSingleMethodTwoImplementers interface @@ -57,7 +57,7 @@ // > } // > ``` SingleMethodTwoImpl() float64 -// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/InterfaceWithSingleMethodTwoImplementers#SingleMethodTwoImpl. +// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithSingleMethodTwoImplementers#SingleMethodTwoImpl. // documentation // > ```go // > func (InterfaceWithSingleMethodTwoImplementers).SingleMethodTwoImpl() float64 @@ -65,7 +65,7 @@ } type TwoImplOne struct{} -// ^^^^^^^^^^ definition 0.1.test `sg/testdata`/TwoImplOne# +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplOne# // documentation // > ```go // > type TwoImplOne struct @@ -74,21 +74,21 @@ // > ```go // > struct{} // > ``` -// relationship 0.1.test `sg/testdata`/InterfaceWithSingleMethodTwoImplementers# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithSingleMethodTwoImplementers# implementation -//⌄ enclosing_range_start 0.1.test `sg/testdata`/TwoImplOne#SingleMethodTwoImpl(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplOne#SingleMethodTwoImpl(). func (TwoImplOne) SingleMethodTwoImpl() float64 { return 5.0 } -// ^^^^^^^^^^ reference 0.1.test `sg/testdata`/TwoImplOne# -// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/TwoImplOne#SingleMethodTwoImpl(). +// ^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplOne# +// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplOne#SingleMethodTwoImpl(). // documentation // > ```go // > func (TwoImplOne).SingleMethodTwoImpl() float64 // > ``` -// relationship 0.1.test `sg/testdata`/InterfaceWithSingleMethodTwoImplementers#SingleMethodTwoImpl. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/TwoImplOne#SingleMethodTwoImpl(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithSingleMethodTwoImplementers#SingleMethodTwoImpl. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplOne#SingleMethodTwoImpl(). type TwoImplTwo struct{} -// ^^^^^^^^^^ definition 0.1.test `sg/testdata`/TwoImplTwo# +// ^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplTwo# // documentation // > ```go // > type TwoImplTwo struct @@ -97,25 +97,25 @@ // > ```go // > struct{} // > ``` -// relationship 0.1.test `sg/testdata`/InterfaceWithSingleMethodTwoImplementers# implementation +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithSingleMethodTwoImplementers# implementation -//⌄ enclosing_range_start 0.1.test `sg/testdata`/TwoImplTwo#SingleMethodTwoImpl(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplTwo#SingleMethodTwoImpl(). func (TwoImplTwo) SingleMethodTwoImpl() float64 { return 5.0 } -// ^^^^^^^^^^ reference 0.1.test `sg/testdata`/TwoImplTwo# -// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/TwoImplTwo#SingleMethodTwoImpl(). +// ^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplTwo# +// ^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplTwo#SingleMethodTwoImpl(). // documentation // > ```go // > func (TwoImplTwo).SingleMethodTwoImpl() float64 // > ``` -// relationship 0.1.test `sg/testdata`/InterfaceWithSingleMethodTwoImplementers#SingleMethodTwoImpl. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/TwoImplTwo#SingleMethodTwoImpl(). -//⌄ enclosing_range_start 0.1.test `sg/testdata`/TwoImplTwo#RandomThingThatDoesntMatter(). +// relationship 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/InterfaceWithSingleMethodTwoImplementers#SingleMethodTwoImpl. implementation +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplTwo#SingleMethodTwoImpl(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplTwo#RandomThingThatDoesntMatter(). func (TwoImplTwo) RandomThingThatDoesntMatter() float64 { return 5.0 } -// ^^^^^^^^^^ reference 0.1.test `sg/testdata`/TwoImplTwo# -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/TwoImplTwo#RandomThingThatDoesntMatter(). +// ^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplTwo# +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplTwo#RandomThingThatDoesntMatter(). // documentation // > ```go // > func (TwoImplTwo).RandomThingThatDoesntMatter() float64 // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/TwoImplTwo#RandomThingThatDoesntMatter(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/TwoImplTwo#RandomThingThatDoesntMatter(). diff --git a/internal/testdata/snapshots/output/testdata/implementations_remote.go b/internal/testdata/snapshots/output/testdata/implementations_remote.go index f431920..91786cd 100755 --- a/internal/testdata/snapshots/output/testdata/implementations_remote.go +++ b/internal/testdata/snapshots/output/testdata/implementations_remote.go @@ -1,11 +1,11 @@ package testdata -// ^^^^^^^^ reference 0.1.test `sg/testdata`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ import "net/http" // ^^^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/ type implementsWriter struct{} -// ^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/implementsWriter# +// ^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter# // documentation // > ```go // > type implementsWriter struct @@ -19,10 +19,10 @@ // relationship github.com/golang/go/src go1.22 `net/http`/ResponseWriter# implementation // relationship github.com/golang/go/src go1.22 io/Writer# implementation -//⌄ enclosing_range_start 0.1.test `sg/testdata`/implementsWriter#Header(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter#Header(). func (implementsWriter) Header() http.Header { panic("Just for how") } -// ^^^^^^^^^^^^^^^^ reference 0.1.test `sg/testdata`/implementsWriter# -// ^^^^^^ definition 0.1.test `sg/testdata`/implementsWriter#Header(). +// ^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter# +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter#Header(). // documentation // > ```go // > func (implementsWriter).Header() Header @@ -30,11 +30,11 @@ // relationship github.com/golang/go/src go1.22 `net/http`/ResponseWriter#Header. implementation // ^^^^ reference github.com/golang/go/src go1.22 `net/http`/ // ^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/Header# -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/implementsWriter#Header(). -//⌄ enclosing_range_start 0.1.test `sg/testdata`/implementsWriter#Write(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter#Header(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter#Write(). func (implementsWriter) Write([]byte) (int, error) { panic("Just for show") } -// ^^^^^^^^^^^^^^^^ reference 0.1.test `sg/testdata`/implementsWriter# -// ^^^^^ definition 0.1.test `sg/testdata`/implementsWriter#Write(). +// ^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter# +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter#Write(). // documentation // > ```go // > func (implementsWriter).Write([]byte) (int, error) @@ -43,22 +43,22 @@ // relationship github.com/golang/go/src go1.22 `internal/bisect`/Writer#Write. implementation // relationship github.com/golang/go/src go1.22 `net/http`/ResponseWriter#Write. implementation // relationship github.com/golang/go/src go1.22 io/Writer#Write. implementation -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/implementsWriter#Write(). -//⌄ enclosing_range_start 0.1.test `sg/testdata`/implementsWriter#WriteHeader(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter#Write(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter#WriteHeader(). func (implementsWriter) WriteHeader(statusCode int) {} -// ^^^^^^^^^^^^^^^^ reference 0.1.test `sg/testdata`/implementsWriter# -// ^^^^^^^^^^^ definition 0.1.test `sg/testdata`/implementsWriter#WriteHeader(). +// ^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter# +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter#WriteHeader(). // documentation // > ```go // > func (implementsWriter).WriteHeader(statusCode int) // > ``` // relationship github.com/golang/go/src go1.22 `net/http`/ResponseWriter#WriteHeader. implementation // ^^^^^^^^^^ definition local 0 -// ⌃ enclosing_range_end 0.1.test `sg/testdata`/implementsWriter#WriteHeader(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/implementsWriter#WriteHeader(). -//⌄ enclosing_range_start 0.1.test `sg/testdata`/ShowsInSignature(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ShowsInSignature(). func ShowsInSignature(respWriter http.ResponseWriter) { -// ^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/ShowsInSignature(). +// ^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ShowsInSignature(). // documentation // > ```go // > func ShowsInSignature(respWriter ResponseWriter) @@ -70,5 +70,5 @@ // ^^^^^^^^^^ reference local 1 // ^^^^^^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/ResponseWriter#WriteHeader. } -//⌃ enclosing_range_end 0.1.test `sg/testdata`/ShowsInSignature(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ShowsInSignature(). diff --git a/internal/testdata/snapshots/output/testdata/internal/secret/doc.go b/internal/testdata/snapshots/output/testdata/internal/secret/doc.go index b42aa25..c09b534 100755 --- a/internal/testdata/snapshots/output/testdata/internal/secret/doc.go +++ b/internal/testdata/snapshots/output/testdata/internal/secret/doc.go @@ -1,6 +1,6 @@ // secret is a package that holds secrets. package secret -// ^^^^^^ definition 0.1.test `sg/testdata/internal/secret`/ +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret`/ // documentation // > secret is a package that holds secrets. diff --git a/internal/testdata/snapshots/output/testdata/internal/secret/secret.go b/internal/testdata/snapshots/output/testdata/internal/secret/secret.go index 1b57832..a3b7476 100755 --- a/internal/testdata/snapshots/output/testdata/internal/secret/secret.go +++ b/internal/testdata/snapshots/output/testdata/internal/secret/secret.go @@ -1,9 +1,9 @@ package secret -// ^^^^^^ reference 0.1.test `sg/testdata/internal/secret`/ +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret`/ // SecretScore is like score but _secret_. const SecretScore = uint64(43) -// ^^^^^^^^^^^ definition 0.1.test `sg/testdata/internal/secret`/SecretScore. +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret`/SecretScore. // documentation // > ```go // > const SecretScore uint64 = 43 @@ -13,7 +13,7 @@ // Original doc type Burger struct { -// ^^^^^^ definition 0.1.test `sg/testdata/internal/secret`/Burger# +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret`/Burger# // documentation // > ```go // > type Burger struct @@ -27,7 +27,7 @@ // > } // > ``` Field int -// ^^^^^ definition 0.1.test `sg/testdata/internal/secret`/Burger#Field. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret`/Burger#Field. // documentation // > ```go // > struct field Field int diff --git a/internal/testdata/snapshots/output/testdata/named_import.go b/internal/testdata/snapshots/output/testdata/named_import.go index 1a02fb1..f156b93 100755 --- a/internal/testdata/snapshots/output/testdata/named_import.go +++ b/internal/testdata/snapshots/output/testdata/named_import.go @@ -1,5 +1,5 @@ package testdata -// ^^^^^^^^ reference 0.1.test `sg/testdata`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ import ( . "fmt" @@ -9,9 +9,9 @@ // ^^^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/ ) -//⌄ enclosing_range_start 0.1.test `sg/testdata`/Example(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Example(). func Example() { -// ^^^^^^^ definition 0.1.test `sg/testdata`/Example(). +// ^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Example(). // documentation // > ```go // > func Example() @@ -21,5 +21,5 @@ // ^ reference local 0 // ^^^^^^^^^^^^^^^^^^ reference github.com/golang/go/src go1.22 `net/http`/CanonicalHeaderKey(). } -//⌃ enclosing_range_end 0.1.test `sg/testdata`/Example(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Example(). diff --git a/internal/testdata/snapshots/output/testdata/parallel.go b/internal/testdata/snapshots/output/testdata/parallel.go index b0575a0..f4e38ff 100755 --- a/internal/testdata/snapshots/output/testdata/parallel.go +++ b/internal/testdata/snapshots/output/testdata/parallel.go @@ -1,5 +1,5 @@ package testdata -// ^^^^^^^^ reference 0.1.test `sg/testdata`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ import ( "context" @@ -11,7 +11,7 @@ // ParallelizableFunc is a function that can be called concurrently with other instances // of this function type. type ParallelizableFunc func(ctx context.Context) error -// ^^^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/ParallelizableFunc# +// ^^^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ParallelizableFunc# // documentation // > ParallelizableFunc is a function that can be called concurrently with other instances // > of this function type. @@ -25,9 +25,9 @@ // Parallel invokes each of the given parallelizable functions in their own goroutines and // returns the first error to occur. This method will block until all goroutines have returned. -//⌄ enclosing_range_start 0.1.test `sg/testdata`/Parallel(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Parallel(). func Parallel(ctx context.Context, fns ...ParallelizableFunc) error { -// ^^^^^^^^ definition 0.1.test `sg/testdata`/Parallel(). +// ^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Parallel(). // documentation // > ```go // > func Parallel(ctx Context, fns ...ParallelizableFunc) error @@ -39,7 +39,7 @@ // ^^^^^^^ reference github.com/golang/go/src go1.22 context/ // ^^^^^^^ reference github.com/golang/go/src go1.22 context/Context# // ^^^ definition local 2 -// ^^^^^^^^^^^^^^^^^^ reference 0.1.test `sg/testdata`/ParallelizableFunc# +// ^^^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ParallelizableFunc# var wg sync.WaitGroup // ^^ definition local 3 // ^^^^ reference github.com/golang/go/src go1.22 sync/ @@ -57,7 +57,7 @@ go func(fn ParallelizableFunc) { // ^^ definition local 6 -// ^^^^^^^^^^^^^^^^^^ reference 0.1.test `sg/testdata`/ParallelizableFunc# +// ^^^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ParallelizableFunc# errs <- fn(ctx) // ^^^^ reference local 4 // ^^ reference local 6 @@ -85,5 +85,5 @@ return nil } -//⌃ enclosing_range_end 0.1.test `sg/testdata`/Parallel(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Parallel(). diff --git a/internal/testdata/snapshots/output/testdata/typealias.go b/internal/testdata/snapshots/output/testdata/typealias.go index db0228f..65bf7ff 100755 --- a/internal/testdata/snapshots/output/testdata/typealias.go +++ b/internal/testdata/snapshots/output/testdata/typealias.go @@ -1,14 +1,14 @@ package testdata -// ^^^^^^^^ reference 0.1.test `sg/testdata`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ import ( - "sg/testdata/internal/secret" -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference 0.1.test `sg/testdata/internal/secret`/ + "github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret" +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret`/ ) // Type aliased doc type SecretBurger = secret.Burger -// ^^^^^^^^^^^^ definition 0.1.test `sg/testdata`/SecretBurger# +// ^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/SecretBurger# // documentation // > ```go // > type SecretBurger = secret.Burger @@ -21,11 +21,11 @@ // > Field int // > } // > ``` -// ^^^^^^ reference 0.1.test `sg/testdata/internal/secret`/ -// ^^^^^^ reference 0.1.test `sg/testdata/internal/secret`/Burger# +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret`/ +// ^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata/internal/secret`/Burger# type BadBurger = struct { -// ^^^^^^^^^ definition 0.1.test `sg/testdata`/BadBurger# +// ^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/BadBurger# // documentation // > ```go // > type BadBurger = struct @@ -37,7 +37,7 @@ // > } // > ``` Field string -// ^^^^^ definition 0.1.test `sg/testdata`/BadBurger#Field. +// ^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/BadBurger#Field. // documentation // > ```go // > struct field Field string diff --git a/internal/testdata/snapshots/output/testdata/typeswitch.go b/internal/testdata/snapshots/output/testdata/typeswitch.go index 743227a..09346cc 100755 --- a/internal/testdata/snapshots/output/testdata/typeswitch.go +++ b/internal/testdata/snapshots/output/testdata/typeswitch.go @@ -1,9 +1,9 @@ package testdata -// ^^^^^^^^ reference 0.1.test `sg/testdata`/ +// ^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/ -//⌄ enclosing_range_start 0.1.test `sg/testdata`/Switch(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Switch(). func Switch(interfaceValue interface{}) bool { -// ^^^^^^ definition 0.1.test `sg/testdata`/Switch(). +// ^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Switch(). // documentation // > ```go // > func Switch(interfaceValue interface{}) bool @@ -30,5 +30,5 @@ return false } } -//⌃ enclosing_range_end 0.1.test `sg/testdata`/Switch(). +//⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testdata`/Switch(). diff --git a/internal/testdata/snapshots/output/testspecial/foo.go b/internal/testdata/snapshots/output/testspecial/foo.go index 0ba160c..fd1c66f 100755 --- a/internal/testdata/snapshots/output/testspecial/foo.go +++ b/internal/testdata/snapshots/output/testspecial/foo.go @@ -1,14 +1,14 @@ package testspecial -// ^^^^^^^^^^^ definition 0.1.test `sg/testspecial`/ +// ^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/ // documentation // > package testspecial -//⌄ enclosing_range_start 0.1.test `sg/testspecial`/Foo(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/Foo(). func Foo() {} -// ^^^ definition 0.1.test `sg/testspecial`/Foo(). +// ^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/Foo(). // documentation // > ```go // > func Foo() // > ``` -// ⌃ enclosing_range_end 0.1.test `sg/testspecial`/Foo(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/Foo(). diff --git a/internal/testdata/snapshots/output/testspecial/foo_other_test.go b/internal/testdata/snapshots/output/testspecial/foo_other_test.go index 6045f77..6f7410a 100755 --- a/internal/testdata/snapshots/output/testspecial/foo_other_test.go +++ b/internal/testdata/snapshots/output/testspecial/foo_other_test.go @@ -1,5 +1,5 @@ package testspecial_test -// ^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testspecial_test`/ +// ^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial_test`/ // documentation // > package testspecial_test @@ -7,20 +7,20 @@ "testing" // ^^^^^^^ reference github.com/golang/go/src go1.22 testing/ - "sg/testspecial" -// ^^^^^^^^^^^^^^ reference 0.1.test `sg/testspecial`/ + "github.com/sourcegraph/scip-go/internal/testdata/testspecial" +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/ ) -//⌄ enclosing_range_start 0.1.test `sg/testspecial_test`/TestFoo_Blackbox(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial_test`/TestFoo_Blackbox(). func TestFoo_Blackbox(*testing.T) { testspecial.Foo() } -// ^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testspecial_test`/TestFoo_Blackbox(). +// ^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial_test`/TestFoo_Blackbox(). // documentation // > ```go // > func TestFoo_Blackbox(*T) // > ``` // ^^^^^^^ reference github.com/golang/go/src go1.22 testing/ // ^ reference github.com/golang/go/src go1.22 testing/T# -// ^^^^^^^^^^^ reference 0.1.test `sg/testspecial`/ -// ^^^ reference 0.1.test `sg/testspecial`/Foo(). -// ⌃ enclosing_range_end 0.1.test `sg/testspecial_test`/TestFoo_Blackbox(). +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/ +// ^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/Foo(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial_test`/TestFoo_Blackbox(). diff --git a/internal/testdata/snapshots/output/testspecial/foo_test.go b/internal/testdata/snapshots/output/testspecial/foo_test.go index a29ecb6..f52bbe9 100755 --- a/internal/testdata/snapshots/output/testspecial/foo_test.go +++ b/internal/testdata/snapshots/output/testspecial/foo_test.go @@ -1,13 +1,13 @@ package testspecial -// ^^^^^^^^^^^ reference 0.1.test `sg/testspecial`/ +// ^^^^^^^^^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/ -//⌄ enclosing_range_start 0.1.test `sg/testspecial`/TestFoo_Whitebox(). +//⌄ enclosing_range_start 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/TestFoo_Whitebox(). func TestFoo_Whitebox() { Foo() } -// ^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testspecial`/TestFoo_Whitebox(). +// ^^^^^^^^^^^^^^^^ definition 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/TestFoo_Whitebox(). // documentation // > ```go // > func TestFoo_Whitebox() // > ``` -// ^^^ reference 0.1.test `sg/testspecial`/Foo(). -// ⌃ enclosing_range_end 0.1.test `sg/testspecial`/TestFoo_Whitebox(). +// ^^^ reference 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/Foo(). +// ⌃ enclosing_range_end 0.1.test `github.com/sourcegraph/scip-go/internal/testdata/testspecial`/TestFoo_Whitebox().