test/plugin/test_exception_detector.rb in fluent-plugin-detect-exceptions-0.0.12 vs test/plugin/test_exception_detector.rb in fluent-plugin-detect-exceptions-0.0.13
- old
+ new
@@ -240,10 +240,30 @@
panics/panics.go:16 +0x3b
created by main.main
server.go:20 +0x91
END
+ GO_HTTP = <<END.freeze
+2019/01/15 07:48:05 http: panic serving [::1]:54143: test panic
+goroutine 24 [running]:
+net/http.(*conn).serve.func1(0xc00007eaa0)
+ /usr/local/go/src/net/http/server.go:1746 +0xd0
+panic(0x12472a0, 0x12ece10)
+ /usr/local/go/src/runtime/panic.go:513 +0x1b9
+main.doPanic(0x12f0ea0, 0xc00010e1c0, 0xc000104400)
+ /Users/ingvar/src/go/src/httppanic.go:8 +0x39
+net/http.HandlerFunc.ServeHTTP(0x12be2e8, 0x12f0ea0, 0xc00010e1c0, 0xc000104400)
+ /usr/local/go/src/net/http/server.go:1964 +0x44
+net/http.(*ServeMux).ServeHTTP(0x14a17a0, 0x12f0ea0, 0xc00010e1c0, 0xc000104400)
+ /usr/local/go/src/net/http/server.go:2361 +0x127
+net/http.serverHandler.ServeHTTP(0xc000085040, 0x12f0ea0, 0xc00010e1c0, 0xc000104400)
+ /usr/local/go/src/net/http/server.go:2741 +0xab
+net/http.(*conn).serve(0xc00007eaa0, 0x12f10a0, 0xc00008a780)
+ /usr/local/go/src/net/http/server.go:1847 +0x646
+created by net/http.(*Server).Serve
+ /usr/local/go/src/net/http/server.go:2851 +0x2f5
+END
CSHARP_EXC = <<END.freeze
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[System.Int32,System.Double]].get_Item (System.String key) [0x00000] in <filename unknown>:0
at File3.Consolidator_Class.Function5 (System.Collections.Generic.Dictionary`2 names, System.Text.StringBuilder param_4) [0x00007] in /usr/local/google/home/Csharp/another file.csharp:9
at File3.Consolidator_Class.Function4 (System.Text.StringBuilder param_4, System.Double[,,] array) [0x00013] in /usr/local/google/home/Csharp/another file.csharp:23
@@ -254,10 +274,37 @@
at File2.Processor.Function1 (Int32 param_1, System.Collections.Generic.Dictionary`2 map) [0x00007] in /usr/local/google/home/Csharp/File2.csharp:34
at Main.Welcome+<Main>c__AnonStorey0.<>m__0 () [0x00006] in /usr/local/google/home/Csharp/hello.csharp:48
at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
END
+ CSHARP_NESTED_EXC = <<END.freeze
+System.InvalidOperationException: This is the outer exception ---> System.InvalidOperationException: This is the inner exception
+ at ExampleApp.NestedExceptionExample.LowestLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 33
+ at ExampleApp.NestedExceptionExample.ThirdLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 28
+ at ExampleApp.NestedExceptionExample.SecondLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 18
+ --- End of inner exception stack trace ---
+ at ExampleApp.NestedExceptionExample.SecondLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 22
+ at ExampleApp.NestedExceptionExample.TopLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 11
+ at ExampleApp.Program.Main(String[] args) in c:/ExampleApp/ExampleApp/Program.cs:line 11
+END
+
+ CSHARP_ASYNC_EXC = <<END.freeze
+System.InvalidOperationException: This is an exception
+ at ExampleApp2.AsyncExceptionExample.LowestLevelMethod() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 36
+ at ExampleApp2.AsyncExceptionExample.<ThirdLevelMethod>d__2.MoveNext() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 31
+--- End of stack trace from previous location where exception was thrown ---
+ at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
+ at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
+ at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
+ at ExampleApp2.AsyncExceptionExample.<SecondLevelMethod>d__1.MoveNext() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 25
+--- End of stack trace from previous location where exception was thrown ---
+ at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
+ at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
+ at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
+ at ExampleApp2.AsyncExceptionExample.<TopLevelMethod>d__0.MoveNext() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 14
+END
+
RUBY_EXC = <<END.freeze
NoMethodError (undefined method `resursivewordload' for #<BooksController:0x007f8dd9a0c738>):
app/controllers/books_controller.rb:69:in `recursivewordload'
app/controllers/books_controller.rb:75:in `loadword'
app/controllers/books_controller.rb:79:in `loadline'
@@ -568,10 +615,12 @@
check_exception(V8_JS_EXC, false)
end
def test_csharp
check_exception(CSHARP_EXC, false)
+ check_exception(CSHARP_NESTED_EXC, false)
+ check_exception(CSHARP_ASYNC_EXC, false)
end
def test_python
check_exception(PYTHON_EXC, true)
end
@@ -583,10 +632,11 @@
def test_go
check_exception(GO_EXC, false)
check_exception(GO_ON_GAE_EXC, false)
check_exception(GO_SIGNAL_EXC, false)
+ check_exception(GO_HTTP, false)
end
def test_ruby
check_exception(RUBY_EXC, false)
check_exception(RAILS_EXC, false)
@@ -625,9 +675,11 @@
check_exception(CLIENT_JS_EXC, false)
check_exception(GO_EXC, false)
check_exception(GO_ON_GAE_EXC, false)
check_exception(GO_SIGNAL_EXC, false)
check_exception(CSHARP_EXC, false)
+ check_exception(CSHARP_NESTED_EXC, false)
+ check_exception(CSHARP_ASYNC_EXC, false)
check_exception(V8_JS_EXC, false)
check_exception(RUBY_EXC, false)
check_exception(DART_ERR, false)
check_exception(DART_EXC, false)
check_exception(DART_ASYNC_ERR, false)