added parser initialize test

This commit is contained in:
epi
2020-10-09 20:05:21 -05:00
parent d9271f6fe7
commit 29abef6386
3 changed files with 15 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
branch: true
branch: false
ignore-not-existing: true
llvm: true
output-type: lcov

View File

@@ -52,8 +52,8 @@ jobs:
- uses: actions/upload-artifact@v2
if: matrix.type == 'ubuntu-x64'
with:
name: ${{ matrix.name }}
path: ${{ matrix.path }}
name: ${{ matrix.name }}.tar.gz
path: ${{ matrix.name }}.tar.gz
build-deb:
needs: [build-nix]

View File

@@ -229,3 +229,15 @@ EXAMPLES:
./feroxbuster -u http://127.1 -t 200
"#)
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
/// initalize parser, expect a clap::App returned
fn parser_initialize_gives_defaults() {
let app = initialize();
assert_eq!(app.get_name(), "feroxbuster");
}
}