-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2100 from rajatjindal/remove-unused-fns
remove unused e2e testing functions
- Loading branch information
Showing
7 changed files
with
33 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use anyhow::Result; | ||
|
||
#[derive(Clone)] | ||
pub struct AppRoute { | ||
pub name: String, | ||
pub route_url: String, | ||
pub wildcard: bool, | ||
} | ||
|
||
#[derive(Clone)] | ||
pub struct AppMetadata { | ||
pub name: String, | ||
pub base: String, | ||
pub app_routes: Vec<AppRoute>, | ||
pub version: String, | ||
} | ||
|
||
impl AppMetadata { | ||
pub fn get_route_with_name(&self, name: String) -> Result<&AppRoute> { | ||
for route in &self.app_routes { | ||
if route.name == name { | ||
return Ok(route); | ||
} | ||
} | ||
|
||
Err("requested route not found").map_err(anyhow::Error::msg) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters