Commit Graph
34 Commits
Author SHA1 Message Date
Paweł Błaszczyk a7cde5a8dd fen: First version passing tests. #86 2015-12-16 22:59:57 +01:00
Pawel Knap 0d5272e6cd inotify: handle watcher.Close errors and fix invalid build flag in tests 2015-02-18 17:50:30 +01:00
Pawel Knap d45d56d71a stub: fix panics and failures on not supported platforms 2015-02-18 14:00:23 +01:00
Rafal Jeczalik bd62d61df5 update license / authors
Done with:

  ~ $ find . -type f -name '*.go' -exec prepend -f preamble.txt {} \;

Automate with CI?
2015-02-15 13:44:09 +01:00
Rafal Jeczalik 54473bab50 notify: build TestIsDirCreateEvent only for recursive watchers
It would not work for inotify, kqueue until #5 is not ready.
2015-02-12 14:55:31 +01:00
Rafal Jeczalik 082bbc8848 notify: add a test-case for isdir function 2015-02-12 11:19:49 +01:00
Rafal Jeczalik b10bba6cab rewrite file tree structure for testing
Because I can.
2015-01-15 20:38:12 +01:00
Rafal Jeczalik 7b47226fe9 implement spy testing for Tree / RecursiveTree (#6) 2015-01-12 22:10:03 +01:00
Rafal Jeczalik fd9a96e261 rewrite TestWatcherInotify 2015-01-03 21:25:50 +01:00
Rafal Jeczalik d37b686b7f test TestWatcherWrites (-> TestWatcherShadowedWriteCreate) only for FSEvents watcher 2015-01-02 16:23:40 +01:00
Rafal Jeczalik f3eddd31ba FSEvents: filter out historical events per path (#53) 2015-01-02 14:44:42 +01:00
Rafal Jeczalik 3c8f26ca5f rework TestWatcherBasic with new testing utils (#53) 2014-12-27 03:45:33 +01:00
Rafal Jeczalik 95fa80ea11 rework watcher tests (#53) 2014-12-27 03:34:20 +01:00
Rafal Jeczalik 65f4b46558 FSEvents: canonicalize every path passed via Watch/Unwatch 2014-12-24 09:20:10 +01:00
Paweł Błaszczyk 4816b655b0 test: Add test for one action -> multiple events.
Commit adds tests executed for each platform and
logic used to write this kind of tests.
2014-10-20 23:04:24 +02:00
Rafal Jeczalik ddb773ca15 Refactor watcher_test to use test package 2014-10-04 22:52:20 +02:00
Rafal Jeczalik 9f0a152526 Rework Fixture -> FixtureFunc. Add Fixture and Cases. 2014-09-28 16:59:18 +02:00
Rafal Jeczalik 03491440dd Rework watch/unwatch test helpers 2014-09-28 16:05:40 +02:00
Rafal Jeczalik e51d811698 Cleanup for watcher_test (#28) 2014-09-27 19:57:09 +02:00
Rafal Jeczalik 8d586c4186 Pass cancelation channel via Watcher.Fanin (#28)
In order to control Watcher / Runtime lifetime for tests I added extra
channel for that exact purpose.
2014-09-27 19:20:15 +02:00
Pawel Knap 0ecdb8fa38 Add path to the path slice only when err == nil 2014-09-27 12:37:13 +02:00
Pawel Knap b3fbc615a4 Unwatch after tests + add support for custom mask 2014-09-27 12:27:47 +02:00
Paweł Błaszczyk bc62848386 Rename notify var to notifier. 2014-09-26 18:32:09 +02:00
Rafal Jeczalik 4a7b39405a Make test fixture s bit more configurable 2014-09-25 23:17:27 +02:00
Rafal Jeczalik c24b7856b9 Rename runtime -> notify 2014-09-24 01:22:15 +02:00
Rafal Jeczalik 40c0c78e4c Rename Ev -> EI 2014-09-21 17:00:15 +02:00
Rafal Jeczalik 0503ae4a9c Add fsnotify build flag
This changes default implementation from fsnotify to platform native.
In order to use fsnotify backend, define fsnotify build flag, e.g.:

   notify $ go test -tags fsnotify .
2014-09-21 16:55:17 +02:00
Rafal Jeczalik 3a0a7e81a5 Rename Dispatch -> Runtime 2014-09-21 14:43:15 +02:00
Rafal Jeczalik 5ade0c5df1 Remove Recursive event (#14) 2014-09-20 16:31:03 +02:00
Rafal Jeczalik bea22431c5 Skip TestIssue16 2014-09-20 13:33:54 +02:00
Rafal Jeczalik f33bc764ef Add a test-case for issue #16 2014-09-19 20:55:53 +02:00
Rafal Jeczalik c3bbc7a09e Rename TestWatcher -> TestGlobalWatcher 2014-09-19 20:11:14 +02:00
Rafal Jeczalik 9782f5db72 Reworked TestWatcher to be synchronous (#3)
So fsnotify has a chance to pass at least part of test-cases.

The test was reworked from asynchronous event-sourcing to
make-action-await-event synchronous fashion - the previous one caused
fsnotify to not discover half of the events, moreover it looked like
create/write/delete events on files within a directory can be preempted
by later one single delete event of that directory. Weird.

So now the focus would be on implementing FSEvents and seeing how it
would differ from fsnotify.
2014-09-19 20:01:03 +02:00
Rafal Jeczalik eba4c647f6 Add watcher implementation backed by fsnotify (#3)
Wonder why it fails.
2014-09-19 16:54:45 +02:00