mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-27 00:09:11 +02:00
As more and more Android teams start using Rust, the question of "How to do mocking?" has come up more frequently. Right now, we don't have a good answer to those teams, AOSP doesn't have any mocking framework available. That will change soon with the import of Mockall and this slide is part of the supporting documentation that we can point teams to.
25 lines
378 B
TOML
25 lines
378 B
TOML
[package]
|
|
name = "testing"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[[example]]
|
|
name = "googletest-example"
|
|
crate-type = ["staticlib"]
|
|
path = "googletest.rs"
|
|
test = true
|
|
|
|
[[example]]
|
|
name = "mockall-example"
|
|
crate-type = ["staticlib"]
|
|
path = "mockall.rs"
|
|
test = true
|
|
|
|
[[bin]]
|
|
name = "luhn"
|
|
path = "exercise.rs"
|
|
|
|
[dependencies]
|
|
googletest = "0.10.0"
|
|
mockall = "0.11.4" |