-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4da66d3
commit 5446ea1
Showing
3 changed files
with
43 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class PathGenerator: | ||
|
||
def __init__(self, wg_ifc_name: str, wg: str, test_type: str, count: int): | ||
self.wg_ifc_name = wg_ifc_name | ||
self.wg = wg | ||
self.test_type = test_type | ||
self.count = count | ||
|
||
def base_path(self) -> str: | ||
return f"results/{self.wg_ifc_name}_{self.wg.lower()}_{self.test_type}_{self.count}" | ||
|
||
def csv(self) -> str: | ||
return ( | ||
f"results/xray_metrics_{self.wg.lower()}_{self.test_type}_{self.count}.csv" | ||
) | ||
|
||
def pcap(self) -> str: | ||
return f"{self.base_path()}.pcap" | ||
|
||
def txt(self) -> str: | ||
return f"{self.base_path()}.txt" | ||
|
||
def png(self) -> str: | ||
return f"{self.base_path()}.png" |
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