audunhalland / unimock

A versatile and developer-friendly trait mocking library
MIT License
71 stars 3 forks source link

Problem matching against `&i32` argument #41

Closed audunhalland closed 8 months ago

audunhalland commented 8 months ago
    #[unimock(api = TestMock)]
    trait Test {
        fn f(&self, arg: &i32);
    }

    #[test]
    fn test() {
        TestMock::f.next_call(matching!(42)).returns_default();
                              ^^^^^^^^^^^^^ multiple `unimock_try_debug` found
    }