Where is implement of the package canister_test in ic code?

Lots of interface use protobuf:

When I used rust to implement query functions, I found the query_(), which is the trait function of struct canister_test::Canister:

The strange thing is that the source of canister_test cannot be found in the entire ic code repository:


and cargo test --manifest-path "./rs/rosetta-api/ledger_canister/Cargo.toml" is failed, as use of undeclared type or module canister_test

Compiling into wasm can be successful: cargo build -p ledger-canister --manifest-path "./rs/Cargo.toml" --target wasm32-unknown-unknown --release

canister_test will be opened source?

1 Like