Reformat
This commit is contained in:
parent
bc09fe3b4e
commit
80bbf9c3df
2 changed files with 53 additions and 39 deletions
|
@ -1,11 +1,11 @@
|
|||
use crate::data_source::{Build, DataSource, Item};
|
||||
#[cfg(test)]
|
||||
use crate::time::Duration;
|
||||
use crate::ChampInfo;
|
||||
use indexmap::IndexMap;
|
||||
use regex::Regex;
|
||||
use serde_derive::Deserialize;
|
||||
use serde_json::{json, Value};
|
||||
use crate::ChampInfo;
|
||||
|
||||
pub struct KBDataSource {
|
||||
token: Option<String>,
|
||||
|
@ -337,7 +337,6 @@ impl DataSource for KBDataSource {
|
|||
),
|
||||
items: final_items
|
||||
}));
|
||||
|
||||
}
|
||||
Some((blocks, winrate))
|
||||
}
|
||||
|
@ -380,7 +379,11 @@ mod tests {
|
|||
.timeout(Duration::from_secs(10))
|
||||
.build();
|
||||
let datasource = KBDataSource::new(&client);
|
||||
let champ = ChampInfo{id: String::from("Aatrox"), name: String::from("Aatrox"), key: String::from("1")};
|
||||
let champ = ChampInfo {
|
||||
id: String::from("Aatrox"),
|
||||
name: String::from("Aatrox"),
|
||||
key: String::from("1"),
|
||||
};
|
||||
let result = datasource.get_champ_data_with_win_pourcentage(&champ, "TOP", &client);
|
||||
assert!(result.is_some());
|
||||
match result {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue