File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -857,11 +857,9 @@ getBuildEdgesCount = tryCallTestPlugin GetBuildEdgesCount
857857getRebuildsCount :: Session (Either (TResponseError @ ClientToServer (Method_CustomMethod " test" )) Int )
858858getRebuildsCount = tryCallTestPlugin GetRebuildsCount
859859
860- -- Copy&paste from ghcide/test/Development.IDE.Test
861860getStoredKeys :: Session [Text ]
862861getStoredKeys = callTestPlugin GetStoredKeys
863862
864- -- Copy&paste from ghcide/test/Development.IDE.Test
865863tryCallTestPlugin :: (A. FromJSON b ) => TestRequest -> Session (Either (TResponseError @ ClientToServer (Method_CustomMethod " test" )) b )
866864tryCallTestPlugin cmd = do
867865 let cm = SMethod_CustomMethod (Proxy @ " test" )
@@ -873,7 +871,6 @@ tryCallTestPlugin cmd = do
873871 A. Success a -> Right a
874872 A. Error e -> error e
875873
876- -- Copy&paste from ghcide/test/Development.IDE.Test
877874callTestPlugin :: (A. FromJSON b ) => TestRequest -> Session b
878875callTestPlugin cmd = do
879876 res <- tryCallTestPlugin cmd
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ withTempDir f = System.IO.Extra.withTempDir $ canonicalizePath >=> f
4444copyTestDataFiles :: FilePath -> FilePath -> IO ()
4545copyTestDataFiles dir prefix = do
4646 -- Copy all the test data files to the temporary workspace
47- testDataFiles <- getDirectoryFilesIO (" ghcide-test/test/ data" </> prefix) [" //*" ]
47+ testDataFiles <- getDirectoryFilesIO (" ghcide-test/data" </> prefix) [" //*" ]
4848 for_ testDataFiles $ \ f -> do
4949 createDirectoryIfMissing True $ dir </> takeDirectory f
50- copyFile (" ghcide-test/test/ data" </> prefix </> f) (dir </> f)
50+ copyFile (" ghcide-test/data" </> prefix </> f) (dir </> f)
You can’t perform that action at this time.
0 commit comments