TestResource
In snfoundry test runner, all the classes must be declared.
If a contract belong to an other crate, it must be added to the build-external-contract,
even for testing, since Scarb does not do that automatically anymore.
The TestResource enum uses a ByteArray to represent the resource name.
Fully qualified path: dojo_snf_test::world::TestResource
pub enum TestResource {
Event: ByteArray,
Model: ByteArray,
Contract: ByteArray,
Library: (ByteArray, ByteArray),
}
Variants
Event
Fully qualified path: dojo_snf_test::world::TestResource::Event
Event: ByteArray
Model
Fully qualified path: dojo_snf_test::world::TestResource::Model
Model: ByteArray
Contract
Fully qualified path: dojo_snf_test::world::TestResource::Contract
Contract: ByteArray
Library
(name, version)
Fully qualified path: dojo_snf_test::world::TestResource::Library
Library: (ByteArray, ByteArray)