diff options
Diffstat (limited to 'source/tanya/async/watcher.d')
| -rw-r--r-- | source/tanya/async/watcher.d | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/tanya/async/watcher.d b/source/tanya/async/watcher.d index 048c5de..02b80ae 100644 --- a/source/tanya/async/watcher.d +++ b/source/tanya/async/watcher.d @@ -36,6 +36,19 @@ abstract class Watcher void invoke() @nogc; } +version (unittest) +{ + final class DummyWatcher : Watcher + { + bool invoked; + + override void invoke() @nogc + { + this.invoked = true; + } + } +} + /** * Socket watcher. */ |
