diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6159bea..020a9c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,7 +82,7 @@ jobs: - name: tests and benchmarks run: | - go test -count=1 -timeout 1m --exec=/bin/true ./... + go test -count=1 -timeout 1m --exec=/bin/true -trimpath ./... run_tests: @@ -104,8 +104,8 @@ jobs: - name: tests and benchmarks run: | - go test -timeout 1m -race -run=XXXX -bench=. ./... - go test -timeout 4m -race ./... + go test -timeout 1m -race -run=XXXX -bench=. -trimpath ./... + go test -timeout 4m -race -trimpath ./... - name: test coverage run: | @@ -117,7 +117,7 @@ jobs: shasum --algorithm 512 --check <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA512SUM" | grep codecov) rm -rf codecov - go test -timeout 4m -race -cover -coverprofile=coverage.out ./... && bash <(curl -s https://codecov.io/bash) + go test -timeout 4m -race -cover -coverprofile=coverage.out -trimpath ./... && bash <(curl -s https://codecov.io/bash) go tool cover -html=coverage.out -o coverage.html go tool cover -func=coverage.out @@ -193,7 +193,7 @@ jobs: find . -name "*.go" | xargs -n 1 sed -i.backup 's/sync.Mutex/deadlock.Mutex/' find . -name '*.backup' -delete /home/runner/go/bin/goimports -w . - go test -timeout 4m -race ./... + go test -timeout 4m -race -trimpath ./... go mod tidy # error shadowing diff --git a/CHANGELOG.md b/CHANGELOG.md index 03afd78..4dca6e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Most recent version is listed first. - Support older Go versions: https://github.com/komuw/kama/pull/71 - Stackp can now write to any io.writer: https://github.com/komuw/kama/pull/74 - Display stacktrace when dumping variables: https://github.com/komuw/kama/pull/73 + https://github.com/komuw/kama/pull/75 # v0.0.19 - Update docs: https://github.com/komuw/kama/commit/3dfdef76fbdd55a8ebed2d01dfb1cbb7c1cf2fc2 diff --git a/README.md b/README.md index 2003487..91bd9f4 100644 --- a/README.md +++ b/README.md @@ -54,38 +54,38 @@ that will print: [ NAME: compress/flate CONSTANTS: [ - BestCompression untyped int - BestSpeed untyped int - DefaultCompression untyped int - HuffmanOnly untyped int - NoCompression untyped int - ] + BestCompression untyped int + BestSpeed untyped int + DefaultCompression untyped int + HuffmanOnly untyped int + NoCompression untyped int + ] VARIABLES: [] FUNCTIONS: [ - NewReader(r io.Reader) io.ReadCloser - NewReaderDict(r io.Reader, dict []byte) io.ReadCloser - NewWriter(w io.Writer, level int) (*Writer, error) - NewWriterDict(w io.Writer, level int, dict []byte) (*Writer, error) - ] + NewReader(r io.Reader) io.ReadCloser + NewReaderDict(r io.Reader, dict []byte) io.ReadCloser + NewWriter(w io.Writer, level int) (*Writer, error) + NewWriterDict(w io.Writer, level int, dict []byte) (*Writer, error) + ] TYPES: [ - CorruptInputError int64 - (CorruptInputError) Error() string - InternalError string - (InternalError) Error() string - ReadError struct - (*ReadError) Error() string - Reader interface - (Reader) Read(p []byte) (n int, err error) - (Reader) ReadByte() (byte, error) - Resetter interface - (Resetter) Reset(r io.Reader, dict []byte) error - WriteError struct - (*WriteError) Error() string - Writer struct - (*Writer) Close() error - (*Writer) Flush() error - (*Writer) Reset(dst io.Writer) - (*Writer) Write(data []byte) (n int, err error)] + CorruptInputError int64 + (CorruptInputError) Error() string + InternalError string + (InternalError) Error() string + ReadError struct + (*ReadError) Error() string + Reader interface + (Reader) Read(p []byte) (n int, err error) + (Reader) ReadByte() (byte, error) + Resetter interface + (Resetter) Reset(r io.Reader, dict []byte) error + WriteError struct + (*WriteError) Error() string + Writer struct + (*Writer) Close() error + (*Writer) Flush() error + (*Writer) Reset(dst io.Writer) + (*Writer) Write(data []byte) (n int, err error)] ] ``` ```bash @@ -94,24 +94,24 @@ NAME: github.com/pkg/errors CONSTANTS: [] VARIABLES: [] FUNCTIONS: [ - As(err error, target interface{}) bool - Cause(err error) error - Errorf(format string, args ...interface{}) error - Is(err error, target error) bool - New(message string) error - Unwrap(err error) error - WithMessage(err error, message string) error - WithMessagef(err error, format string, args ...interface{}) error - WithStack(err error) error - Wrap(err error, message string) error - Wrapf(err error, format string, args ...interface{}) error - ] + As(err error, target interface{}) bool + Cause(err error) error + Errorf(format string, args ...interface{}) error + Is(err error, target error) bool + New(message string) error + Unwrap(err error) error + WithMessage(err error, message string) error + WithMessagef(err error, format string, args ...interface{}) error + WithStack(err error) error + Wrap(err error, message string) error + Wrapf(err error, format string, args ...interface{}) error + ] TYPES: [ - Frame uintptr - (Frame) Format(s fmt.State, verb rune) - (Frame) MarshalText() ([]byte, error) - StackTrace []Frame - (StackTrace) Format(s fmt.State, verb rune)] + Frame uintptr + (Frame) Format(s fmt.State, verb rune) + (Frame) MarshalText() ([]byte, error) + StackTrace []Frame + (StackTrace) Format(s fmt.State, verb rune)] ] ``` @@ -165,15 +165,28 @@ METHODS: [ MultipartReader func(*http.Request) (*multipart.Reader, error) ParseForm func(*http.Request) error ParseMultipartForm func(*http.Request, int64) error + PathValue func(*http.Request, string) string PostFormValue func(*http.Request, string) string ProtoAtLeast func(*http.Request, int, int) bool Referer func(*http.Request) string SetBasicAuth func(*http.Request, string, string) + SetPathValue func(*http.Request, string, string) UserAgent func(*http.Request) string WithContext func(*http.Request, context.Context) *http.Request Write func(*http.Request, io.Writer) error WriteProxy func(*http.Request, io.Writer) error ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + /home/komu/mystuff/kama/kama.go:129 github.com/komuw/kama.Dir + /home/komu/mystuff/kama/kama_test.go:244 github.com/komuw/kama.TestReadmeExamples.func1 + /usr/local/go/src/testing/testing.go:1689 testing.tRunner + /usr/local/go/src/runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &Request{ Method: "GET", URL: &URL{ diff --git a/kama_test.go b/kama_test.go index 605a31d..64c60a6 100644 --- a/kama_test.go +++ b/kama_test.go @@ -243,7 +243,7 @@ func TestReadmeExamples(t *testing.T) { res := Dir(v.item) - path := getDataPath(t, "kama_test.go", v.tName) + path := getDataPath(t, "kama_test.go", "TestReadmeExamples_"+v.tName) dealWithTestData(t, path, res) }) } diff --git a/testdata/e2e_test/&SomeConcreteError.txt b/testdata/e2e_test/&SomeConcreteError.txt index 1ccf1b5..3ffefc6 100644 --- a/testdata/e2e_test/&SomeConcreteError.txt +++ b/testdata/e2e_test/&SomeConcreteError.txt @@ -7,5 +7,16 @@ FIELDS: [] METHODS: [ Error func() string ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:471 github.com/komuw/kama_test.TestAllAboutInterfaces.func1.1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &error(unable to read from ftp file) ] diff --git a/testdata/e2e_test/NilEmptyInterface.txt b/testdata/e2e_test/NilEmptyInterface.txt index 005c31d..2815e3c 100644 --- a/testdata/e2e_test/NilEmptyInterface.txt +++ b/testdata/e2e_test/NilEmptyInterface.txt @@ -5,5 +5,16 @@ KIND: ptr SIGNATURE: [nil] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:85 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:471 github.com/komuw/kama_test.TestAllAboutInterfaces.func1.1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: nil ] diff --git a/testdata/e2e_test/NonNilEmptyInterface.txt b/testdata/e2e_test/NonNilEmptyInterface.txt index 2f109ff..16c326e 100644 --- a/testdata/e2e_test/NonNilEmptyInterface.txt +++ b/testdata/e2e_test/NonNilEmptyInterface.txt @@ -5,5 +5,16 @@ KIND: int SIGNATURE: [int] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:471 github.com/komuw/kama_test.TestAllAboutInterfaces.func1.1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: int(9) ] diff --git a/testdata/e2e_test/SomeConcreteError.txt b/testdata/e2e_test/SomeConcreteError.txt index 57e0b8e..a6bafa8 100644 --- a/testdata/e2e_test/SomeConcreteError.txt +++ b/testdata/e2e_test/SomeConcreteError.txt @@ -7,5 +7,16 @@ FIELDS: [] METHODS: [ Error func(*errors.errorString) string ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:471 github.com/komuw/kama_test.TestAllAboutInterfaces.func1.1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: error(unable to read from ftp file) ] diff --git a/testdata/e2e_test/SomeNilError.txt b/testdata/e2e_test/SomeNilError.txt index 005c31d..2815e3c 100644 --- a/testdata/e2e_test/SomeNilError.txt +++ b/testdata/e2e_test/SomeNilError.txt @@ -5,5 +5,16 @@ KIND: ptr SIGNATURE: [nil] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:85 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:471 github.com/komuw/kama_test.TestAllAboutInterfaces.func1.1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: nil ] diff --git a/testdata/e2e_test/SomeReader.txt b/testdata/e2e_test/SomeReader.txt index 92d69b2..a0edeaa 100644 --- a/testdata/e2e_test/SomeReader.txt +++ b/testdata/e2e_test/SomeReader.txt @@ -17,6 +17,17 @@ METHODS: [ UnreadRune func(*strings.Reader) error WriteTo func(*strings.Reader, io.Writer) (int64, error) ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:471 github.com/komuw/kama_test.TestAllAboutInterfaces.func1.1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &Reader{ } ] diff --git a/testdata/e2e_test/custom_string_type.txt b/testdata/e2e_test/custom_string_type.txt index e73092c..7624a21 100644 --- a/testdata/e2e_test/custom_string_type.txt +++ b/testdata/e2e_test/custom_string_type.txt @@ -8,5 +8,16 @@ METHODS: [ GoString func(kama_test.secretKey) string String func(kama_test.secretKey) string ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:90 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: secretKey(T) ] diff --git a/testdata/e2e_test/map_in_a_struct_is_not_compacted.txt b/testdata/e2e_test/map_in_a_struct_is_not_compacted.txt index f5fa99e..16909e6 100644 --- a/testdata/e2e_test/map_in_a_struct_is_not_compacted.txt +++ b/testdata/e2e_test/map_in_a_struct_is_not_compacted.txt @@ -7,6 +7,17 @@ FIELDS: [ XX map[int]string ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: someStructWithMap{ XX: map[int]string{ int(0): "0", diff --git a/testdata/e2e_test/map_on_its_own_is_not_compacted.txt b/testdata/e2e_test/map_on_its_own_is_not_compacted.txt index c6e6932..1473b45 100644 --- a/testdata/e2e_test/map_on_its_own_is_not_compacted.txt +++ b/testdata/e2e_test/map_on_its_own_is_not_compacted.txt @@ -5,6 +5,17 @@ KIND: map SIGNATURE: [map[int]string] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: map[int]string{ int(0): "0", int(1): "1", diff --git a/testdata/e2e_test/normal_string.txt b/testdata/e2e_test/normal_string.txt index 0cf5b4e..47f624a 100644 --- a/testdata/e2e_test/normal_string.txt +++ b/testdata/e2e_test/normal_string.txt @@ -5,5 +5,16 @@ KIND: string SIGNATURE: [string] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:124 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: "heyWorldOkay" ] diff --git a/testdata/e2e_test/number_float32.txt b/testdata/e2e_test/number_float32.txt index ec9c114..b44d068 100644 --- a/testdata/e2e_test/number_float32.txt +++ b/testdata/e2e_test/number_float32.txt @@ -5,5 +5,16 @@ KIND: float32 SIGNATURE: [float32] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: float32(32) ] diff --git a/testdata/e2e_test/number_float64.txt b/testdata/e2e_test/number_float64.txt index 8783e37..2514978 100644 --- a/testdata/e2e_test/number_float64.txt +++ b/testdata/e2e_test/number_float64.txt @@ -5,5 +5,16 @@ KIND: float64 SIGNATURE: [float64] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: float64(64) ] diff --git a/testdata/e2e_test/number_int.txt b/testdata/e2e_test/number_int.txt index fc25ab1..1401196 100644 --- a/testdata/e2e_test/number_int.txt +++ b/testdata/e2e_test/number_int.txt @@ -5,5 +5,16 @@ KIND: int SIGNATURE: [int] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: int(44) ] diff --git a/testdata/e2e_test/number_int32.txt b/testdata/e2e_test/number_int32.txt index 1ea1c48..9d9561e 100644 --- a/testdata/e2e_test/number_int32.txt +++ b/testdata/e2e_test/number_int32.txt @@ -5,5 +5,16 @@ KIND: int32 SIGNATURE: [int32] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: int32(32) ] diff --git a/testdata/e2e_test/number_int64.txt b/testdata/e2e_test/number_int64.txt index 0c3bb81..1771d2a 100644 --- a/testdata/e2e_test/number_int64.txt +++ b/testdata/e2e_test/number_int64.txt @@ -5,5 +5,16 @@ KIND: int64 SIGNATURE: [int64] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: int64(64) ] diff --git a/testdata/e2e_test/number_uint64.txt b/testdata/e2e_test/number_uint64.txt index 0973377..68ac283 100644 --- a/testdata/e2e_test/number_uint64.txt +++ b/testdata/e2e_test/number_uint64.txt @@ -5,5 +5,16 @@ KIND: uint64 SIGNATURE: [uint64] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: uint64(88) ] diff --git a/testdata/e2e_test/number_uintptr.txt b/testdata/e2e_test/number_uintptr.txt index 513ea49..f37cffa 100644 --- a/testdata/e2e_test/number_uintptr.txt +++ b/testdata/e2e_test/number_uintptr.txt @@ -5,5 +5,16 @@ KIND: uintptr SIGNATURE: [uintptr] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: uintptr(123) ] diff --git a/testdata/e2e_test/pointer_to_struct_of_varying_field_types.txt.txt b/testdata/e2e_test/pointer_to_struct_of_varying_field_types.txt.txt index 4ab0572..c353d1b 100644 --- a/testdata/e2e_test/pointer_to_struct_of_varying_field_types.txt.txt +++ b/testdata/e2e_test/pointer_to_struct_of_varying_field_types.txt.txt @@ -35,6 +35,17 @@ FIELDS: [ SomeUnsafety unsafe.Pointer ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:381 github.com/komuw/kama_test.TestDir.func3 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &SomeStruct{ SomeInt: int16(13), SomeUintptr: uintptr(64902), diff --git a/testdata/e2e_test/slice_in_a_struct_is_not_compacted.txt b/testdata/e2e_test/slice_in_a_struct_is_not_compacted.txt index ca7273c..bfcdc5d 100644 --- a/testdata/e2e_test/slice_in_a_struct_is_not_compacted.txt +++ b/testdata/e2e_test/slice_in_a_struct_is_not_compacted.txt @@ -7,6 +7,17 @@ FIELDS: [ XX []int ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: someStructWithSlice{ XX: []int{ int(0), diff --git a/testdata/e2e_test/slice_of_http_Request_value_structs.txt.txt b/testdata/e2e_test/slice_of_http_Request_value_structs.txt.txt index 9b4e708..47a6bb6 100644 --- a/testdata/e2e_test/slice_of_http_Request_value_structs.txt.txt +++ b/testdata/e2e_test/slice_of_http_Request_value_structs.txt.txt @@ -5,6 +5,17 @@ KIND: slice SIGNATURE: [[]http.Request] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:398 github.com/komuw/kama_test.TestDir.func4 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: []http.Request{ Request{ Method: "0", diff --git a/testdata/e2e_test/slice_on_its_own_is_not_compacted.txt b/testdata/e2e_test/slice_on_its_own_is_not_compacted.txt index ef242d9..be13719 100644 --- a/testdata/e2e_test/slice_on_its_own_is_not_compacted.txt +++ b/testdata/e2e_test/slice_on_its_own_is_not_compacted.txt @@ -5,6 +5,17 @@ KIND: slice SIGNATURE: [[]int] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:268 github.com/komuw/kama_test.TestDir.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: []int{ int(0), int(1), diff --git a/testdata/e2e_test/someOne.txt b/testdata/e2e_test/someOne.txt index 0152399..b157195 100644 --- a/testdata/e2e_test/someOne.txt +++ b/testdata/e2e_test/someOne.txt @@ -9,6 +9,17 @@ FIELDS: [ SomeConcreteError error ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:471 github.com/komuw/kama_test.TestAllAboutInterfaces.func1.1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: SomeStructWithInterfaces{ AAA: io.Reader(*strings.Reader) &{hello from strings NewReader 0 -1}, SomeNilError: error(nil), diff --git a/testdata/e2e_test/someTwo.txt b/testdata/e2e_test/someTwo.txt index e8cb8f3..c85dfa3 100644 --- a/testdata/e2e_test/someTwo.txt +++ b/testdata/e2e_test/someTwo.txt @@ -9,6 +9,17 @@ FIELDS: [ SomeConcreteError error ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:471 github.com/komuw/kama_test.TestAllAboutInterfaces.func1.1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &SomeStructWithInterfaces{ AAA: io.Reader(*strings.Reader) &{hello from strings NewReader 0 -1}, SomeNilError: error(nil), diff --git a/testdata/e2e_test/struct_of_varying_field_types.txt.txt b/testdata/e2e_test/struct_of_varying_field_types.txt.txt index 7482632..518e156 100644 --- a/testdata/e2e_test/struct_of_varying_field_types.txt.txt +++ b/testdata/e2e_test/struct_of_varying_field_types.txt.txt @@ -35,6 +35,17 @@ FIELDS: [ SomeUnsafety unsafe.Pointer ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/e2e_test.go:325 github.com/komuw/kama_test.TestDir.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: SomeStruct{ SomeInt: int16(13), SomeUintptr: uintptr(64902), diff --git a/testdata/kama_test/TestDiff-http_Request.txt b/testdata/kama_test/TestDiff-http_Request.txt index 7b1695d..dfe93ed 100644 --- a/testdata/kama_test/TestDiff-http_Request.txt +++ b/testdata/kama_test/TestDiff-http_Request.txt @@ -49,6 +49,19 @@ Write func(*http.Request, io.Writer) error WriteProxy func(*http.Request, io.Writer) error ] + STACK_TRACE: [ + LEGEND: + compiler: blue + thirdParty: yellow + yours: red + +  github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir +- github.com/komuw/kama/kama.go:161 github.com/komuw/kama.Diff ++ github.com/komuw/kama/kama.go:162 github.com/komuw/kama.Diff +  github.com/komuw/kama/kama_test.go:284 github.com/komuw/kama.TestDiff.func1 +  testing/testing.go:1689 testing.tRunner +  runtime/asm_amd64.s:1695 runtime.goexit + ] SNIPPET: Request{ - Method: "GET", + Method: "POST", diff --git a/testdata/kama_test/http_request.txt b/testdata/kama_test/TestReadmeExamples_http_request.txt similarity index 87% rename from testdata/kama_test/http_request.txt rename to testdata/kama_test/TestReadmeExamples_http_request.txt index a108441..54ff25e 100644 --- a/testdata/kama_test/http_request.txt +++ b/testdata/kama_test/TestReadmeExamples_http_request.txt @@ -49,6 +49,17 @@ METHODS: [ Write func(*http.Request, io.Writer) error WriteProxy func(*http.Request, io.Writer) error ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/kama_test.go:244 github.com/komuw/kama.TestReadmeExamples.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &Request{ Method: "GET", URL: &URL{ diff --git a/testdata/kama_test/package_compress_flate.txt b/testdata/kama_test/TestReadmeExamples_package_compress_flate.txt similarity index 100% rename from testdata/kama_test/package_compress_flate.txt rename to testdata/kama_test/TestReadmeExamples_package_compress_flate.txt diff --git a/testdata/kama_test/package_github.com_pkg_errors.txt b/testdata/kama_test/TestReadmeExamples_package_github.com_pkg_errors.txt similarity index 100% rename from testdata/kama_test/package_github.com_pkg_errors.txt rename to testdata/kama_test/TestReadmeExamples_package_github.com_pkg_errors.txt diff --git a/testdata/kama_test/http_request_with_stack.txt b/testdata/kama_test/http_request_with_stack.txt index 594e04f..4679bbc 100644 --- a/testdata/kama_test/http_request_with_stack.txt +++ b/testdata/kama_test/http_request_with_stack.txt @@ -55,10 +55,10 @@ STACK_TRACE: [ thirdParty: yellow yours: red - /home/komu/mystuff/kama/kama.go:129 github.com/komuw/kama.Dir - /home/komu/mystuff/kama/kama_test.go:315 github.com/komuw/kama.TestDirWithStack.func1 - /usr/local/go/src/testing/testing.go:1689 testing.tRunner - /usr/local/go/src/runtime/asm_amd64.s:1695 runtime.goexit + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/kama_test.go:315 github.com/komuw/kama.TestDirWithStack.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit ] SNIPPET: &Request{ Method: "GET", diff --git a/testdata/vars_test/TestCircularRef-with-NO-cirlce-DoNotShowPrivateFields.txt b/testdata/vars_test/TestCircularRef-with-NO-cirlce-DoNotShowPrivateFields.txt index 0d60341..633765f 100644 --- a/testdata/vars_test/TestCircularRef-with-NO-cirlce-DoNotShowPrivateFields.txt +++ b/testdata/vars_test/TestCircularRef-with-NO-cirlce-DoNotShowPrivateFields.txt @@ -7,6 +7,17 @@ FIELDS: [ Public string ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/vars_test.go:641 github.com/komuw/kama.TestCircularRef.func3 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &Client{ Public: "PublicName", } diff --git a/testdata/vars_test/TestCircularRef-with-NO-cirlce-ShowPrivateFields.txt b/testdata/vars_test/TestCircularRef-with-NO-cirlce-ShowPrivateFields.txt index 8782d76..4a7f92b 100644 --- a/testdata/vars_test/TestCircularRef-with-NO-cirlce-ShowPrivateFields.txt +++ b/testdata/vars_test/TestCircularRef-with-NO-cirlce-ShowPrivateFields.txt @@ -7,6 +7,17 @@ FIELDS: [ Public string ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/vars_test.go:639 github.com/komuw/kama.TestCircularRef.func3 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &Client{ Public: "PublicName", srv: srvRef{ diff --git a/testdata/vars_test/TestCircularRef-with-cirlce-DoNotShowPrivateFields.txt b/testdata/vars_test/TestCircularRef-with-cirlce-DoNotShowPrivateFields.txt index 0d60341..d8152b2 100644 --- a/testdata/vars_test/TestCircularRef-with-cirlce-DoNotShowPrivateFields.txt +++ b/testdata/vars_test/TestCircularRef-with-cirlce-DoNotShowPrivateFields.txt @@ -7,6 +7,17 @@ FIELDS: [ Public string ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/vars_test.go:609 github.com/komuw/kama.TestCircularRef.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &Client{ Public: "PublicName", } diff --git a/testdata/vars_test/TestCircularRef-with-cirlce-ShowPrivateFields.txt b/testdata/vars_test/TestCircularRef-with-cirlce-ShowPrivateFields.txt index 0e59198..30619b7 100644 --- a/testdata/vars_test/TestCircularRef-with-cirlce-ShowPrivateFields.txt +++ b/testdata/vars_test/TestCircularRef-with-cirlce-ShowPrivateFields.txt @@ -7,6 +7,17 @@ FIELDS: [ Public string ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/vars_test.go:607 github.com/komuw/kama.TestCircularRef.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &Client{ Public: "PublicName", srv: srvRef{ diff --git a/testdata/vars_test/TestPublicPrivate-custom-DoNotShowPrivateFields.txt b/testdata/vars_test/TestPublicPrivate-custom-DoNotShowPrivateFields.txt index b43b61a..0303cc3 100644 --- a/testdata/vars_test/TestPublicPrivate-custom-DoNotShowPrivateFields.txt +++ b/testdata/vars_test/TestPublicPrivate-custom-DoNotShowPrivateFields.txt @@ -10,6 +10,17 @@ FIELDS: [ SomePublic kama.Hey ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/vars_test.go:523 github.com/komuw/kama.TestPublicPrivate.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: SomeStruct{ AAA: io.Reader(*strings.Reader) &{hello from strings NewReader 0 -1}, SomeNilError: error(nil), diff --git a/testdata/vars_test/TestPublicPrivate-custom-ShowPrivateFields.txt b/testdata/vars_test/TestPublicPrivate-custom-ShowPrivateFields.txt index 894a11f..e74ded3 100644 --- a/testdata/vars_test/TestPublicPrivate-custom-ShowPrivateFields.txt +++ b/testdata/vars_test/TestPublicPrivate-custom-ShowPrivateFields.txt @@ -10,6 +10,17 @@ FIELDS: [ SomePublic kama.Hey ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/vars_test.go:521 github.com/komuw/kama.TestPublicPrivate.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: SomeStruct{ AAA: io.Reader(*strings.Reader) &{hello from strings NewReader 0 -1}, SomeNilError: error(nil), diff --git a/testdata/vars_test/TestPublicPrivate-custom-default.txt b/testdata/vars_test/TestPublicPrivate-custom-default.txt index b43b61a..4c1b9e3 100644 --- a/testdata/vars_test/TestPublicPrivate-custom-default.txt +++ b/testdata/vars_test/TestPublicPrivate-custom-default.txt @@ -10,6 +10,17 @@ FIELDS: [ SomePublic kama.Hey ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/vars_test.go:519 github.com/komuw/kama.TestPublicPrivate.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: SomeStruct{ AAA: io.Reader(*strings.Reader) &{hello from strings NewReader 0 -1}, SomeNilError: error(nil), diff --git a/testdata/vars_test/TestPublicPrivate-stdlib-DoNotShowPrivateFields.txt b/testdata/vars_test/TestPublicPrivate-stdlib-DoNotShowPrivateFields.txt index 9a77a82..fdaa080 100644 --- a/testdata/vars_test/TestPublicPrivate-stdlib-DoNotShowPrivateFields.txt +++ b/testdata/vars_test/TestPublicPrivate-stdlib-DoNotShowPrivateFields.txt @@ -49,6 +49,17 @@ METHODS: [ Write func(*http.Request, io.Writer) error WriteProxy func(*http.Request, io.Writer) error ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/vars_test.go:555 github.com/komuw/kama.TestPublicPrivate.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: Request{ Method: "Hello", URL: *url.URL(nil), diff --git a/testdata/vars_test/TestPublicPrivate-stdlib-ShowPrivateFields.txt b/testdata/vars_test/TestPublicPrivate-stdlib-ShowPrivateFields.txt index 37e06f8..43e04ab 100644 --- a/testdata/vars_test/TestPublicPrivate-stdlib-ShowPrivateFields.txt +++ b/testdata/vars_test/TestPublicPrivate-stdlib-ShowPrivateFields.txt @@ -49,6 +49,17 @@ METHODS: [ Write func(*http.Request, io.Writer) error WriteProxy func(*http.Request, io.Writer) error ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/vars_test.go:553 github.com/komuw/kama.TestPublicPrivate.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: Request{ Method: "Hello", URL: *url.URL(nil), diff --git a/testdata/vars_test/TestPublicPrivate-stdlib-default.txt b/testdata/vars_test/TestPublicPrivate-stdlib-default.txt index 9a77a82..271f488 100644 --- a/testdata/vars_test/TestPublicPrivate-stdlib-default.txt +++ b/testdata/vars_test/TestPublicPrivate-stdlib-default.txt @@ -49,6 +49,17 @@ METHODS: [ Write func(*http.Request, io.Writer) error WriteProxy func(*http.Request, io.Writer) error ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/kama.go:129 github.com/komuw/kama.Dir + github.com/komuw/kama/vars_test.go:551 github.com/komuw/kama.TestPublicPrivate.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: Request{ Method: "Hello", URL: *url.URL(nil), diff --git a/testdata/vars_test/big_array.txt b/testdata/vars_test/big_array.txt index 42db424..c602077 100644 --- a/testdata/vars_test/big_array.txt +++ b/testdata/vars_test/big_array.txt @@ -5,6 +5,16 @@ KIND: array SIGNATURE: [[10000]int] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: [10000]int{ int(0), int(1), diff --git a/testdata/vars_test/big_chan.txt b/testdata/vars_test/big_chan.txt index ff46367..fa236f3 100644 --- a/testdata/vars_test/big_chan.txt +++ b/testdata/vars_test/big_chan.txt @@ -5,5 +5,15 @@ KIND: chan SIGNATURE: [chan int] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: chan int (len=10000, cap=10000) ] diff --git a/testdata/vars_test/big_map.txt b/testdata/vars_test/big_map.txt index c6e6932..066da1b 100644 --- a/testdata/vars_test/big_map.txt +++ b/testdata/vars_test/big_map.txt @@ -5,6 +5,16 @@ KIND: map SIGNATURE: [map[int]string] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: map[int]string{ int(0): "0", int(1): "1", diff --git a/testdata/vars_test/big_slice.txt b/testdata/vars_test/big_slice.txt index ef242d9..e05ca05 100644 --- a/testdata/vars_test/big_slice.txt +++ b/testdata/vars_test/big_slice.txt @@ -5,6 +5,16 @@ KIND: slice SIGNATURE: [[]int] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: []int{ int(0), int(1), diff --git a/testdata/vars_test/big_string.txt b/testdata/vars_test/big_string.txt index 2d307c1..317e1a0 100644 --- a/testdata/vars_test/big_string.txt +++ b/testdata/vars_test/big_string.txt @@ -5,5 +5,15 @@ KIND: string SIGNATURE: [string] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: "AT last the sleepy atmosphere was stirred—and vigorously: the murder trial came on in the ...<3342 more redacted>.. ] diff --git a/testdata/vars_test/context_inside_struct.txt b/testdata/vars_test/context_inside_struct.txt index 5c82dc5..d753478 100644 --- a/testdata/vars_test/context_inside_struct.txt +++ b/testdata/vars_test/context_inside_struct.txt @@ -9,6 +9,16 @@ FIELDS: [ OurCtx context.Context ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:398 github.com/komuw/kama.TestContexts.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: StructWithContext{ Name: "John", Age: int64(763), diff --git a/testdata/vars_test/custom_context.txt b/testdata/vars_test/custom_context.txt index 2378cf7..c9f19d6 100644 --- a/testdata/vars_test/custom_context.txt +++ b/testdata/vars_test/custom_context.txt @@ -10,6 +10,16 @@ METHODS: [ Err func(kama.customContext) error Value func(kama.customContext, interface {}) interface {} ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:398 github.com/komuw/kama.TestContexts.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: customContext{ } ] diff --git a/testdata/vars_test/default_config.txt b/testdata/vars_test/default_config.txt index a83db91..576dca4 100644 --- a/testdata/vars_test/default_config.txt +++ b/testdata/vars_test/default_config.txt @@ -10,6 +10,16 @@ FIELDS: [ BigString string ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:469 github.com/komuw/kama.TestLong.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: Hey{ BigSlice: []int{ int(0), diff --git a/testdata/vars_test/distinct_type.txt b/testdata/vars_test/distinct_type.txt index 75f9675..dbae340 100644 --- a/testdata/vars_test/distinct_type.txt +++ b/testdata/vars_test/distinct_type.txt @@ -7,5 +7,15 @@ FIELDS: [] METHODS: [ ID func(kama.customerID) uint16 ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: kama.customerID(9) ] diff --git a/testdata/vars_test/embedded_struct_with_tags.txt b/testdata/vars_test/embedded_struct_with_tags.txt index c72dab8..0a97759 100644 --- a/testdata/vars_test/embedded_struct_with_tags.txt +++ b/testdata/vars_test/embedded_struct_with_tags.txt @@ -7,6 +7,16 @@ FIELDS: [ Another struct { Allowed bool "json:\"enabled\""; Name string "json:\"their_name\"" } ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: Hey{ Another: { Allowed: true, diff --git a/testdata/vars_test/function.txt b/testdata/vars_test/function.txt index 75a18c1..bce8264 100644 --- a/testdata/vars_test/function.txt +++ b/testdata/vars_test/function.txt @@ -5,5 +5,15 @@ KIND: func SIGNATURE: [func(string, int) (string, error)] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: func(string, int) (string, error) ] diff --git a/testdata/vars_test/function_variable.txt b/testdata/vars_test/function_variable.txt index 75a18c1..bce8264 100644 --- a/testdata/vars_test/function_variable.txt +++ b/testdata/vars_test/function_variable.txt @@ -5,5 +5,15 @@ KIND: func SIGNATURE: [func(string, int) (string, error)] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: func(string, int) (string, error) ] diff --git a/testdata/vars_test/maxLength_big-string_config.txt b/testdata/vars_test/maxLength_big-string_config.txt index 7743d22..13a09b2 100644 --- a/testdata/vars_test/maxLength_big-string_config.txt +++ b/testdata/vars_test/maxLength_big-string_config.txt @@ -5,5 +5,15 @@ KIND: string SIGNATURE: [string] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:469 github.com/komuw/kama.TestLong.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: "AT last the sleepy atmosphere was stirred—and vigorously: the murder trial came on in the court. It became the absorbing topic of village talk immediately. Tom could not get away from it. Every reference to the murder sent a shudder to his heart, for his troubled conscience and fears almost persuaded him that these remarks were put forth in his hearing as “feelers”; he did not see how he could be suspected of knowing anything about the murder, but still he could not be comfortable in the midst of this gossip. It kept him in a cold shiver all the time. He took Huck to a lonely place to have a talk with him. It would be some relief to unseal his tongue for a little while; to divide his burden of distress with another sufferer. Moreover, he wanted to assure himself that Huck had remained discreet.\n“Huck, have you ever told anybody about—that?”\n“'Bout what?”\n“You know what.”\n“Oh—'course I haven't.”\n“Never a word?”\n“Never a solitary word, so help me. What makes you ask?”\n“Well, I was afeard.”\n“Why, Tom Sawyer, we wouldn't be alive two days if that got found out. You know that.”\nTom felt more comfortable. After a pause:\n“Huck, they couldn't anybody get you to tell, could they?”\n“Get me to tell? Why, if I wanted that halfbreed devil to drownd me they could get me to tell. They ain't no different way.”\n“Well, that's all right, then. I reckon we're safe as long as we keep mum. But let's swear again, anyway. It's more surer.”\n“I'm agreed.”\nSo they swore again with dread solemnities.\n“What is the talk around, Huck? I've heard a power of it.”\n“Talk? Well, it's just Muff Potter, Muff Potter, Muff Potter all the time. It keeps me in a sweat, constant, so's I want to hide som'ers.”\n“That's just the same way they go on round me. I reckon he's a goner. Don't you feel sorry for him, sometimes?”\n“Most always—most always. He ain't no account; but then he hain't ever done anything to hurt anybody. Just fishes a little, to get money to get drunk on—and loafs around considerable; but lord, we all do that—leastways most of us—preachers and such like. But he's kind of good—he give me half a fish, once, when there warn't enough for two; and lots of times he's kind of stood by me when I was out of luck.”\n“Well, he's mended kites for me, Huck, and knitted hooks on to my line. I wish we could get him out of there.”\n“My! we couldn't get him out, Tom. And besides, 'twouldn't do any good; they'd ketch him again.”\n“Yes—so they would. But I hate to hear 'em abuse him so like the dickens when he never done—that.”\n“I do too, Tom. Lord, I hear 'em say he's the bloodiest looking villain in this country, and they wonder he wasn't ever hung before.”\n“Yes, they talk like that, all the time. I've heard 'em say that if he was to get free they'd lynch him.”\n“And they'd do it, too.”\nThe boys had a long talk, but it brought them little comfort. As the twilight drew on, they found themselves hanging about the neighborhood of the little isolated jail, perhaps with an undefined hope that something would happen that might clear away their difficulties. But nothing happened; there seemed to be no angels or fairies interested in this luckless captive.\nThe boys did as they had often done before—went to the cell grating and gave Potter some tobacco and matches. He was on the ground floor and there were no guards." ] diff --git a/testdata/vars_test/maxLength_config.txt b/testdata/vars_test/maxLength_config.txt index 11572bf..240a73e 100644 --- a/testdata/vars_test/maxLength_config.txt +++ b/testdata/vars_test/maxLength_config.txt @@ -10,6 +10,16 @@ FIELDS: [ BigString string ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:469 github.com/komuw/kama.TestLong.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: Hey{ BigSlice: []int{ int(0), diff --git a/testdata/vars_test/maxLength_empty-string_config.txt b/testdata/vars_test/maxLength_empty-string_config.txt index a3ecd60..6eead88 100644 --- a/testdata/vars_test/maxLength_empty-string_config.txt +++ b/testdata/vars_test/maxLength_empty-string_config.txt @@ -5,5 +5,15 @@ KIND: string SIGNATURE: [string] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:469 github.com/komuw/kama.TestLong.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: "" ] diff --git a/testdata/vars_test/nil_map.txt b/testdata/vars_test/nil_map.txt index 12bbe0b..d775ad7 100644 --- a/testdata/vars_test/nil_map.txt +++ b/testdata/vars_test/nil_map.txt @@ -5,5 +5,15 @@ KIND: map SIGNATURE: [map[string]int] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:306 github.com/komuw/kama.TestSliceMap.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: map[string]int{(nil)} ] diff --git a/testdata/vars_test/nil_slice.txt b/testdata/vars_test/nil_slice.txt index 15ac43d..a5588b6 100644 --- a/testdata/vars_test/nil_slice.txt +++ b/testdata/vars_test/nil_slice.txt @@ -5,5 +5,15 @@ KIND: slice SIGNATURE: [[]string] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:306 github.com/komuw/kama.TestSliceMap.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: []string{(nil)} ] diff --git a/testdata/vars_test/no_config.txt b/testdata/vars_test/no_config.txt index 03edf84..ad8e19c 100644 --- a/testdata/vars_test/no_config.txt +++ b/testdata/vars_test/no_config.txt @@ -10,6 +10,16 @@ FIELDS: [ BigString string ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:469 github.com/komuw/kama.TestLong.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: Hey{ BigSlice: []int{ int(0), diff --git a/testdata/vars_test/no_element_map.txt b/testdata/vars_test/no_element_map.txt index ccf6dd1..407062e 100644 --- a/testdata/vars_test/no_element_map.txt +++ b/testdata/vars_test/no_element_map.txt @@ -5,5 +5,15 @@ KIND: map SIGNATURE: [map[string]int] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:306 github.com/komuw/kama.TestSliceMap.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: map[string]int{} ] diff --git a/testdata/vars_test/no_element_slice.txt b/testdata/vars_test/no_element_slice.txt index ccd467e..fc7f2ce 100644 --- a/testdata/vars_test/no_element_slice.txt +++ b/testdata/vars_test/no_element_slice.txt @@ -5,5 +5,15 @@ KIND: slice SIGNATURE: [[]string] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:306 github.com/komuw/kama.TestSliceMap.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: []string{} ] diff --git a/testdata/vars_test/one_element_map.txt b/testdata/vars_test/one_element_map.txt index 3a42ff4..693beb2 100644 --- a/testdata/vars_test/one_element_map.txt +++ b/testdata/vars_test/one_element_map.txt @@ -5,6 +5,16 @@ KIND: map SIGNATURE: [map[string]int] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:306 github.com/komuw/kama.TestSliceMap.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: map[string]int{ "o": int(1), } diff --git a/testdata/vars_test/one_element_slice.txt b/testdata/vars_test/one_element_slice.txt index d948b67..0771437 100644 --- a/testdata/vars_test/one_element_slice.txt +++ b/testdata/vars_test/one_element_slice.txt @@ -5,6 +5,16 @@ KIND: slice SIGNATURE: [[]string] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:306 github.com/komuw/kama.TestSliceMap.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: []string{ "hello", } diff --git a/testdata/vars_test/pointer_struct.txt b/testdata/vars_test/pointer_struct.txt index b19f88c..8c3e678 100644 --- a/testdata/vars_test/pointer_struct.txt +++ b/testdata/vars_test/pointer_struct.txt @@ -14,6 +14,16 @@ METHODS: [ PtrMethodOne func(*kama.Person) PtrMethodTwo func(*kama.Person) float32 ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &Person{ Name: "Jane", Age: int(0), diff --git a/testdata/vars_test/pointer_struct_of_http.Request.txt b/testdata/vars_test/pointer_struct_of_http.Request.txt index d171313..30249bf 100644 --- a/testdata/vars_test/pointer_struct_of_http.Request.txt +++ b/testdata/vars_test/pointer_struct_of_http.Request.txt @@ -49,6 +49,16 @@ METHODS: [ Write func(*http.Request, io.Writer) error WriteProxy func(*http.Request, io.Writer) error ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:248 github.com/komuw/kama.TestStdlibVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &Request{ Method: "", URL: *url.URL(nil), diff --git a/testdata/vars_test/pointer_struct_with_slice_field.txt b/testdata/vars_test/pointer_struct_with_slice_field.txt index 09a95ac..e4be4f2 100644 --- a/testdata/vars_test/pointer_struct_with_slice_field.txt +++ b/testdata/vars_test/pointer_struct_with_slice_field.txt @@ -8,6 +8,16 @@ FIELDS: [ MyAwesome []int ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: &SomeStructWIthSlice{ Name: "HelloPointery", MyAwesome: []int{ diff --git a/testdata/vars_test/stdlib_context_Background.txt b/testdata/vars_test/stdlib_context_Background.txt index 241571c..dda5987 100644 --- a/testdata/vars_test/stdlib_context_Background.txt +++ b/testdata/vars_test/stdlib_context_Background.txt @@ -11,5 +11,15 @@ METHODS: [ String func(context.backgroundCtx) string Value func(context.backgroundCtx, interface {}) interface {} ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:398 github.com/komuw/kama.TestContexts.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: context.Background ] diff --git a/testdata/vars_test/stdlib_context_TODO.txt b/testdata/vars_test/stdlib_context_TODO.txt index ee33ca1..29800fd 100644 --- a/testdata/vars_test/stdlib_context_TODO.txt +++ b/testdata/vars_test/stdlib_context_TODO.txt @@ -11,5 +11,15 @@ METHODS: [ String func(context.todoCtx) string Value func(context.todoCtx, interface {}) interface {} ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:398 github.com/komuw/kama.TestContexts.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: context.TODO ] diff --git a/testdata/vars_test/stdlib_context_WithCancel.txt b/testdata/vars_test/stdlib_context_WithCancel.txt index d62cdf5..1f9433f 100644 --- a/testdata/vars_test/stdlib_context_WithCancel.txt +++ b/testdata/vars_test/stdlib_context_WithCancel.txt @@ -13,5 +13,15 @@ METHODS: [ String func(*context.cancelCtx) string Value func(*context.cancelCtx, interface {}) interface {} ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:398 github.com/komuw/kama.TestContexts.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: context.Background.WithCancel ] diff --git a/testdata/vars_test/stdlib_context_WithValue.txt b/testdata/vars_test/stdlib_context_WithValue.txt index b4b44c9..d84524d 100644 --- a/testdata/vars_test/stdlib_context_WithValue.txt +++ b/testdata/vars_test/stdlib_context_WithValue.txt @@ -13,5 +13,15 @@ METHODS: [ String func(*context.valueCtx) string Value func(*context.valueCtx, interface {}) interface {} ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:398 github.com/komuw/kama.TestContexts.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: context.TODO.WithValue(type kama.myContextKeyType, val OKAYY) ] diff --git a/testdata/vars_test/stdlib_context_encapsulated.txt b/testdata/vars_test/stdlib_context_encapsulated.txt index 4dc3db6..bfeee44 100644 --- a/testdata/vars_test/stdlib_context_encapsulated.txt +++ b/testdata/vars_test/stdlib_context_encapsulated.txt @@ -13,5 +13,15 @@ METHODS: [ String func(*context.valueCtx) string Value func(*context.valueCtx, interface {}) interface {} ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:398 github.com/komuw/kama.TestContexts.func2 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: context.Background.WithCancel.WithValue(type kama.myContextKeyType, val ThisIsSomeContextValue) ] diff --git a/testdata/vars_test/struct_with_tags.txt b/testdata/vars_test/struct_with_tags.txt index ccaab07..eefd05d 100644 --- a/testdata/vars_test/struct_with_tags.txt +++ b/testdata/vars_test/struct_with_tags.txt @@ -8,6 +8,16 @@ FIELDS: [ Name string ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: StructWithTags{ Allowed: false, Name: "", diff --git a/testdata/vars_test/two_element_map.txt b/testdata/vars_test/two_element_map.txt index bb6b041..8032f95 100644 --- a/testdata/vars_test/two_element_map.txt +++ b/testdata/vars_test/two_element_map.txt @@ -5,6 +5,16 @@ KIND: map SIGNATURE: [map[string]int] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:306 github.com/komuw/kama.TestSliceMap.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: map[string]int{ "o": int(1), "two": int(2), diff --git a/testdata/vars_test/two_element_slice.txt b/testdata/vars_test/two_element_slice.txt index a85066b..1275781 100644 --- a/testdata/vars_test/two_element_slice.txt +++ b/testdata/vars_test/two_element_slice.txt @@ -5,6 +5,16 @@ KIND: slice SIGNATURE: [[]string] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:306 github.com/komuw/kama.TestSliceMap.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: []string{ "one", "two", diff --git a/testdata/vars_test/value_struct.txt b/testdata/vars_test/value_struct.txt index 99f8a5c..ed3bad9 100644 --- a/testdata/vars_test/value_struct.txt +++ b/testdata/vars_test/value_struct.txt @@ -14,6 +14,16 @@ METHODS: [ PtrMethodOne func(*kama.Person) PtrMethodTwo func(*kama.Person) float32 ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: Person{ Name: "John", Age: int(0), diff --git a/testdata/vars_test/value_struct_of_http.Request.txt b/testdata/vars_test/value_struct_of_http.Request.txt index edeae76..08b4a9f 100644 --- a/testdata/vars_test/value_struct_of_http.Request.txt +++ b/testdata/vars_test/value_struct_of_http.Request.txt @@ -49,6 +49,16 @@ METHODS: [ Write func(*http.Request, io.Writer) error WriteProxy func(*http.Request, io.Writer) error ] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:248 github.com/komuw/kama.TestStdlibVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: Request{ Method: "", URL: *url.URL(nil), diff --git a/testdata/vars_test/value_struct_with_slice_field.txt b/testdata/vars_test/value_struct_with_slice_field.txt index fbda790..58249f9 100644 --- a/testdata/vars_test/value_struct_with_slice_field.txt +++ b/testdata/vars_test/value_struct_with_slice_field.txt @@ -8,6 +8,16 @@ FIELDS: [ MyAwesome []int ] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: SomeStructWIthSlice{ Name: "Hello", MyAwesome: []int{ diff --git a/testdata/vars_test/zero_value_pointer.txt b/testdata/vars_test/zero_value_pointer.txt index 82aa1de..fbef5c8 100644 --- a/testdata/vars_test/zero_value_pointer.txt +++ b/testdata/vars_test/zero_value_pointer.txt @@ -5,5 +5,15 @@ KIND: ptr SIGNATURE: [*http.Request] FIELDS: [] METHODS: [] +STACK_TRACE: [ +LEGEND: + compiler: blue + thirdParty: yellow + yours: red + + github.com/komuw/kama/vars_test.go:217 github.com/komuw/kama.TestBasicVariables.func1 + testing/testing.go:1689 testing.tRunner + runtime/asm_amd64.s:1695 runtime.goexit +] SNIPPET: *http.Request(nil) ]