File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ defmodule Sentry.EventTest do
4040 % {
4141 filename: "test/event_test.exs" ,
4242 function: "Sentry.EventTest.\" test parses error exception\" /1" ,
43- lineno: 48 ,
43+ lineno: 299 ,
4444 module: Sentry.EventTest ,
4545 context_line: nil ,
4646 post_context: [ ] ,
@@ -180,7 +180,7 @@ defmodule Sentry.EventTest do
180180 % {
181181 filename: "test/event_test.exs" ,
182182 function: "Sentry.EventTest.\" test parses error exception\" /1" ,
183- lineno: 48 ,
183+ lineno: 299 ,
184184 module: Sentry.EventTest ,
185185 context_line: nil ,
186186 post_context: [ ] ,
Original file line number Diff line number Diff line change @@ -126,6 +126,18 @@ defmodule Sentry.LoggerTest do
126126 assert List . last ( json [ "stacktrace" ] [ "frames" ] ) [ "filename" ] == "lib/calendar.ex"
127127 assert List . last ( json [ "stacktrace" ] [ "frames" ] ) [ "lineno" ] == 1214
128128
129+ Version . match? ( System . version ( ) , "~> 1.5.0" ) ->
130+ assert List . last ( json [ "stacktrace" ] [ "frames" ] ) [ "vars" ] == % {
131+ "arg0" => "{}" ,
132+ "arg1" => "{}" ,
133+ "arg2" => "{}"
134+ }
135+
136+ assert List . last ( json [ "stacktrace" ] [ "frames" ] ) [ "filename" ] ==
137+ "lib/calendar/naive_datetime.ex"
138+
139+ assert List . last ( json [ "stacktrace" ] [ "frames" ] ) [ "function" ] == "NaiveDateTime.from_erl/3"
140+ assert List . last ( json [ "stacktrace" ] [ "frames" ] ) [ "lineno" ] == 522
129141 Version . match? ( System . version ( ) , ">= 1.5.0" ) ->
130142 assert List . last ( json [ "stacktrace" ] [ "frames" ] ) [ "vars" ] == % {
131143 "arg0" => "{}" ,
You can’t perform that action at this time.
0 commit comments