-
Notifications
You must be signed in to change notification settings - Fork 634
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: adds a Lambda scanner for easier testing
Instead of having to copy and paste the async traits over and over for testing purposes a new Lambda scanner is created. This allows us to easily build a scanner based on sync functions. To use it you can use the LambdaBuilder: ``` use models::scanner::Error as ScanError; use models::scanner::LambdaBuilder; let builder = LambdaBuilder::default().with_start(|_| Err(ScanError::Unexpected("meh".to_string()))); let scanner = builder.build(); ```
- Loading branch information
1 parent
c5b4321
commit 90ecc3a
Showing
1 changed file
with
123 additions
and
1 deletion.
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