summaryrefslogtreecommitdiff
path: root/src/mongo/gotools/vendor/src/github.com/smartystreets/assertions/internal/ogletest/test_cases/golden.panicking_test
blob: 32eac65f7babaed26ffcec034505665a7182884a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[----------] Running tests from PanickingTest
[ RUN      ] PanickingTest.ExplicitPanic
TearDown running.
panicking_test.go:47:
panic: Panic in ExplicitPanic

github.com/smartystreets/assertions/internal/ogletest/somepkg_test.(*PanickingTest).ExplicitPanic
	some_file.txt:0
runtime.call16
	/some/path/asm_amd64.s:401
reflect.Value.call
	some_file.txt:0
reflect.Value.Call
	some_file.txt:0


[  FAILED  ] PanickingTest.ExplicitPanic
[ RUN      ] PanickingTest.ExplicitPanicInHelperFunction
TearDown running.
panicking_test.go:34:
panic: Panic in someFuncThatPanics

github.com/smartystreets/assertions/internal/ogletest/somepkg_test.someFuncThatPanics
	some_file.txt:0
github.com/smartystreets/assertions/internal/ogletest/somepkg_test.(*PanickingTest).ExplicitPanicInHelperFunction
	some_file.txt:0
runtime.call16
	/some/path/asm_amd64.s:401
reflect.Value.call
	some_file.txt:0
reflect.Value.Call
	some_file.txt:0


[  FAILED  ] PanickingTest.ExplicitPanicInHelperFunction
[ RUN      ] PanickingTest.NilPointerDerefence
TearDown running.
panicking_test.go:56:
panic: runtime error: invalid memory address or nil pointer dereference

github.com/smartystreets/assertions/internal/ogletest/somepkg_test.(*PanickingTest).NilPointerDerefence
	some_file.txt:0
runtime.call16
	/some/path/asm_amd64.s:401
reflect.Value.call
	some_file.txt:0
reflect.Value.Call
	some_file.txt:0


[  FAILED  ] PanickingTest.NilPointerDerefence
[ RUN      ] PanickingTest.ZzzSomeOtherTest
TearDown running.
[       OK ] PanickingTest.ZzzSomeOtherTest
[----------] Finished with tests from PanickingTest
[----------] Running tests from SetUpPanicTest
[ RUN      ] SetUpPanicTest.SomeTestCase
SetUp about to panic.
TearDown running.
panicking_test.go:74:
panic: Panic in SetUp

github.com/smartystreets/assertions/internal/ogletest/somepkg_test.(*SetUpPanicTest).SetUp
	some_file.txt:0
github.com/smartystreets/assertions/internal/ogletest.func·003
	some_file.txt:0
github.com/smartystreets/assertions/internal/ogletest.func·007
	some_file.txt:0


[  FAILED  ] SetUpPanicTest.SomeTestCase
[----------] Finished with tests from SetUpPanicTest
[----------] Running tests from TearDownPanicTest
[ RUN      ] TearDownPanicTest.SomeTestCase
TearDown about to panic.
panicking_test.go:95:
panic: Panic in TearDown

github.com/smartystreets/assertions/internal/ogletest/somepkg_test.(*TearDownPanicTest).TearDown
	some_file.txt:0
github.com/smartystreets/assertions/internal/ogletest.func·005
	some_file.txt:0


[  FAILED  ] TearDownPanicTest.SomeTestCase
[----------] Finished with tests from TearDownPanicTest
--- FAIL: TestSomething (1.23s)
FAIL
exit status 1
FAIL somepkg 1.234s