### ----------------------------------------------------
### -- Test::Mock
### -- Licenses: Artistic-2.0
### -- Authors: Jonathan Worthington <jnthn@jnthn.net>
### -- File: t/threads.rakutest
### ----------------------------------------------------
use Test;
use Test::Mock;

plan 1;

class Foo {
    method lol() { 'rofl' }
}

my $x = mocked(Foo);

await do for ^4 {
    start {
        for ^1000 {
            $x.lol();
        }
    }
}

check-mock($x,
    *.called('lol', times => 4000)
);


