diff --git a/internal/testdata/snapshots/input/testspecial/foo.go b/internal/testdata/snapshots/input/testspecial/foo.go new file mode 100644 index 0000000..28f0be3 --- /dev/null +++ b/internal/testdata/snapshots/input/testspecial/foo.go @@ -0,0 +1,3 @@ +package testspecial + +func Foo() {} diff --git a/internal/testdata/snapshots/input/testspecial/foo_other_test.go b/internal/testdata/snapshots/input/testspecial/foo_other_test.go new file mode 100644 index 0000000..9fa6d3e --- /dev/null +++ b/internal/testdata/snapshots/input/testspecial/foo_other_test.go @@ -0,0 +1,9 @@ +package testspecial_test + +import ( + "testing" + + "sg/testspecial" +) + +func TestFoo_Blackbox(*testing.T) { testspecial.Foo() } diff --git a/internal/testdata/snapshots/input/testspecial/foo_test.go b/internal/testdata/snapshots/input/testspecial/foo_test.go new file mode 100644 index 0000000..f72bbb7 --- /dev/null +++ b/internal/testdata/snapshots/input/testspecial/foo_test.go @@ -0,0 +1,3 @@ +package testspecial + +func TestFoo_Whitebox() { Foo() } diff --git a/internal/testdata/snapshots/input/testspecial/go.mod b/internal/testdata/snapshots/input/testspecial/go.mod new file mode 100644 index 0000000..d5f2dab --- /dev/null +++ b/internal/testdata/snapshots/input/testspecial/go.mod @@ -0,0 +1,3 @@ +module sg/testspecial + +go 1.19 diff --git a/internal/testdata/snapshots/output/testspecial/foo.go b/internal/testdata/snapshots/output/testspecial/foo.go new file mode 100755 index 0000000..e1aae65 --- /dev/null +++ b/internal/testdata/snapshots/output/testspecial/foo.go @@ -0,0 +1,12 @@ + package testspecial +// ^^^^^^^^^^^ definition 0.1.test `sg/testspecial`/ +// documentation +// > package testspecial + + func Foo() {} +// ^^^ definition 0.1.test `sg/testspecial`/Foo(). +// documentation +// > ```go +// > func Foo() +// > ``` + diff --git a/internal/testdata/snapshots/output/testspecial/foo_other_test.go b/internal/testdata/snapshots/output/testspecial/foo_other_test.go new file mode 100755 index 0000000..39ba768 --- /dev/null +++ b/internal/testdata/snapshots/output/testspecial/foo_other_test.go @@ -0,0 +1,24 @@ + package testspecial_test +// ^^^^^^^^^^^^^^^^ definition 0.1.test `sg/testspecial_test`/ +// documentation +// > package testspecial_test + + import ( + "testing" +// ^^^^^^^ reference github.com/golang/go/src go1.22 testing/ + + "sg/testspecial" +// ^^^^^^^^^^^^^^ reference 0.1.test `sg/testspecial`/ + ) + + func TestFoo_Blackbox(*testing.T) { testspecial.Foo() } +// ^^^^^^^^^^^^^^^^ definition 0.1.test `sg/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(). +