nrxus / faux

Struct mocking library for Rust
https://nrxus.github.io/faux/
MIT License
411 stars 14 forks source link

not compatible with rust-annalyze #48

Closed xiaoquanju closed 2 years ago

xiaoquanju commented 2 years ago

i think faux is a very good mock lib, but not compatible with rust-annalyze sometimes; 16546711476251

erros tips is : 1, missing structure fields: 0 2,no field running_task_num on type &SessionManager available fields are: 0

xiaoquanju commented 2 years ago

i find that the object create must be in aux_method. close

nrxus commented 2 years ago

@xiaoquanju yes, faux wants every method that reads/writes the fields of the actual struct to be wrapped by faux_methods. I am glad you got it figured it out!