aboutsummaryrefslogtreecommitdiff
path: root/plugin/loop/loop_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/loop/loop_test.go')
-rw-r--r--plugin/loop/loop_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugin/loop/loop_test.go b/plugin/loop/loop_test.go
new file mode 100644
index 000000000..e7a4b06bb
--- /dev/null
+++ b/plugin/loop/loop_test.go
@@ -0,0 +1,11 @@
+package loop
+
+import "testing"
+
+func TestLoop(t *testing.T) {
+ l := New(".")
+ l.inc()
+ if l.seen() != 1 {
+ t.Errorf("Failed to inc loop, expected %d, got %d", 1, l.seen())
+ }
+}