Skip to content

Commit c1105f6

Browse files
committed
tests: Test for eval plugin now show correct line in output
Using `HasCallStack`, `testCase` can no pinpoint the call location instead of pointing inside the utility function.
1 parent 6cdd5be commit c1105f6

File tree

1 file changed

+1
-1
lines changed
  • plugins/hls-eval-plugin/test

1 file changed

+1
-1
lines changed

plugins/hls-eval-plugin/test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ diffOffConfig =
261261
unObject (Object obj) = obj
262262
unObject _ = undefined
263263

264-
evalInFile :: FilePath -> T.Text -> T.Text -> IO ()
264+
evalInFile :: HasCallStack => FilePath -> T.Text -> T.Text -> IO ()
265265
evalInFile fp e expected = runSessionWithServer evalPlugin testDataDir $ do
266266
doc <- openDoc fp "haskell"
267267
origin <- documentContents doc

0 commit comments

Comments
 (0)