Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove mockall dependency #3776

Merged
merged 1 commit into from
Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 0 additions & 92 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion chain/cosmos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ tonic-build = { version = "0.7.1", features = ["prost"] }

[dependencies]
graph = { path = "../../graph" }
mockall = "0.9.1"
prost = "0.10.1"
prost-types = "0.10.1"
serde = "1.0"
Expand Down
1 change: 0 additions & 1 deletion chain/ethereum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ http = "0.2.4"
jsonrpc-core = "18.0.0"
graph = { path = "../../graph" }
lazy_static = "1.2.0"
mockall = "0.9.1"
serde = "1.0"
prost = "0.10.4"
prost-types = "0.10.1"
Expand Down
3 changes: 0 additions & 3 deletions chain/ethereum/src/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ use graph::firehose::CallToFilter;
use graph::firehose::CombinedFilter;
use graph::firehose::LogFilter;
use itertools::Itertools;
use mockall::automock;
use mockall::predicate::*;
use prost::Message;
use prost_types::Any;
use std::cmp;
Expand Down Expand Up @@ -841,7 +839,6 @@ impl SubgraphEthRpcMetrics {
///
/// Implementations may be implemented against an in-process Ethereum node
/// or a remote node over RPC.
#[automock]
#[async_trait]
pub trait EthereumAdapter: Send + Sync + 'static {
fn url_hostname(&self) -> &str;
Expand Down
2 changes: 1 addition & 1 deletion chain/ethereum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub mod trigger;

pub use crate::adapter::{
EthereumAdapter as EthereumAdapterTrait, EthereumContractCall, EthereumContractCallError,
MockEthereumAdapter, ProviderEthRpcMetrics, SubgraphEthRpcMetrics, TriggerFilter,
ProviderEthRpcMetrics, SubgraphEthRpcMetrics, TriggerFilter,
};
pub use crate::chain::Chain;
pub use crate::network::EthereumNetworks;
Expand Down
1 change: 0 additions & 1 deletion chain/substreams/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ http = "0.2.4"
jsonrpc-core = "18.0.0"
graph = { path = "../../graph" }
lazy_static = "1.2.0"
mockall = "0.9.1"
serde = "1.0"
prost = "0.10.4"
prost-types = "0.10.1"
Expand Down
1 change: 0 additions & 1 deletion graph/tests/entity_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ impl MockStore {
}
}

// The store trait must be implemented manually because mockall does not support async_trait, nor borrowing from arguments.
#[async_trait]
impl WritableStore for MockStore {
async fn block_ptr(&self) -> Option<BlockPtr> {
Expand Down