Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Test Coverage to Cover the fields.py file for LayerField and LayerFieldsContainer Classes #704

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

philipscoderepo
Copy link

@philipscoderepo philipscoderepo commented Aug 8, 2024

Fix #701 Tested on Windows 11, Python 3.12.0

This pull request addresses a lack of test coverage for the LayerField and LayerFieldsContainer classes in the source file src/pyshark/packet/fields.py. These tests ensure that functions performing value conversions and string formatting produce the expected results when provided certain values, as well as some functional testing for functions used to modify values within the class.

A new test source file will be added to the tests folder under a new packet directory, which, can also contain tests for the other files under the src/pyshark/packet directory. These tests use the standards pytest library, and follow the same testing conventions as existing tests in the repository.

@philipscoderepo philipscoderepo changed the title Adding Test Coverage to Cover the fields.py file for LayerField and LayerFieldsContainer classes Adding Test Coverage to Cover the fields.py file for LayerField and LayerFieldsContainer Classes Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding Test Coverage to Cover the fields.py file for LayerField and LayerFieldsContainer classes
1 participant