SkuldNorniern / fluere

Fluere is a powerful and versatile tool designed for network monitoring and analysis. It is capable of capturing network packets in pcap format and converting them into NetFlow data, providing a comprehensive view of network traffic. It also Provides Terminal User Interface.
Apache License 2.0
29 stars 3 forks source link

Add Test Cases for Parser Modules #61

Closed sweep-ai[bot] closed 10 months ago

sweep-ai[bot] commented 10 months ago

Description

This PR adds test cases for the parser modules in the src/net/parser directory. The existing codebase lacks test coverage, making it difficult to ensure the correctness and robustness of the code. By adding test cases, we can improve the overall code quality and reliability of the application.

Summary

These test cases cover a variety of scenarios, including typical use cases and edge cases, to ensure the robustness of the code. The tests assert that the functions produce the expected outputs given the provided inputs.

Please review and merge this PR to improve the test coverage and overall quality of the codebase.

Fixes #59.


To checkout this PR branch, run the following command in your terminal:

git checkout {pull_request.branch_name}

🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

SkuldNorniern commented 10 months ago

can you remove the test boxes that you've marked as no function to test

sweep-ai[bot] commented 10 months ago

can you remove the test boxes that you've marked as no function to test

Hi @SkuldNorniern,

I decided to make the following changes:

File Path Proposed Changes
src/net/parser/mod.rs Modify src/net/parser/mod.rs with contents:
• Remove the entire #[cfg(test)] module.