From 62a685d57c44612bc251645ce3d48999e8a4c05e Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 28 Dec 2019 14:49:03 +0000 Subject: test multi-index store --- t/lib/TestIndex.pm6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 't/lib') diff --git a/t/lib/TestIndex.pm6 b/t/lib/TestIndex.pm6 index 730ee92..c0b0b03 100644 --- a/t/lib/TestIndex.pm6 +++ b/t/lib/TestIndex.pm6 @@ -4,6 +4,9 @@ use MaildirIndexer::Index; unit class TestIndex does MaildirIndexer::Index; has %.mails; +has $.name = 'test index'; +has @.responses = ( 'foo' xx 10 ); + has atomicint $!seen = 0; has Int $.expect; has $.seen-all; @@ -28,5 +31,5 @@ method del-path(IO:D $path, Str:D $mailbox --> Nil) { } method mailbox-for-email(MaildirIndexer::Email:D $email --> Str) { - return 'foo' + return @!responses.shift; } -- cgit v1.2.3