2-- Module : Streamly.Test.FileSystem.Event.Windows
3-- Copyright : (c) 2020 Composewell Technologies
4-- License : BSD-3-Clause
5-- Maintainer : streamly@composewell.com
6-- Stability : experimental
9module Streamly.Test.FileSystem.Event.Windows (main) where
11import qualified Streamly.Internal.FileSystem.Event.Windows as Event
12import Streamly.Test.FileSystem.Event.Common
15moduleName = "FileSystem.Event.Windows"
17-- TODO Test isModified event for parent directories when a file is created or
22 let regularRootTests =
24 -- The following watch-root deletion test results in:
25 -- C:\tmp\fsevent_dir-e061f0b0a00e1696\watch-root:
26 -- removePathForcibly:RemoveDirectory
27 -- "\\\\?\\C:\\tmp\\fsevent_dir-e061f0b0a00e1696\\watch-root":
28 -- permission denied (The process cannot access the file because it is
29 -- being used by another process.)
31 -- ++ dirDelete "" (\dir -> [(dir, Event.isDeleted)])
33 let w = Event.watchWith (Event.setAllEvents True)
34 run = runTests moduleName "non-recursive" w
36 run DirType regularRootTests
37 run SymLinkOrigPath commonTests
40 [ dirCreateWithParent "subdir\\dir"
41 (\dir -> [(dir, dirEvent Event.isCreated)])
42 , fileCreateWithParent "subdir\\file"
43 (\file -> [(file, fileEvent Event.isCreated)])
46 let recw = Event.watchWith
47 (Event.setAllEvents True . Event.setRecursiveMode True)
48 runRec = runTests moduleName "recursive" recw
50 runRec DirType (regularRootTests ++ recTests)
51 runRec SymLinkOrigPath (commonTests ++ recTests)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list