Skip to content

Commit

Permalink
rename mockgecko to mockcoingecko
Browse files Browse the repository at this point in the history
  • Loading branch information
warittornc committed Feb 27, 2024
1 parent 165da56 commit 4e308a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bothan-coingecko/src/api/rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub(crate) mod test {
(server, api)
}

pub(crate) trait MockGecko {
pub(crate) trait MockCoinGecko {
fn set_successful_coin_list(&mut self, coin_list: &[Coin]) -> Mock;
fn set_failed_coin_list(&mut self) -> Mock;
fn set_successful_coins_market(&mut self, ids: &[&str], market: &[Market]) -> Vec<Mock>;
Expand All @@ -94,7 +94,7 @@ pub(crate) mod test {
fn set_failed_coins_market(&mut self, ids: &[&str]) -> Mock;
}

impl MockGecko for ServerGuard {
impl MockCoinGecko for ServerGuard {
fn set_successful_coin_list(&mut self, coin_list: &[Coin]) -> Mock {
self.mock("GET", "/coins/list")
.with_status(200)
Expand Down
2 changes: 1 addition & 1 deletion bothan-coingecko/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ fn parse_market(market: &Market) -> Result<PriceData, Error> {
mod test {
use mockito::ServerGuard;

use crate::api::rest::test::{setup as api_setup, MockGecko};
use crate::api::rest::test::{setup as api_setup, MockCoinGecko};
use crate::api::types::Coin;

use super::*;
Expand Down

0 comments on commit 4e308a3

Please sign in to comment.