Skip to content

Conversation

@sbrugman
Copy link
Collaborator

@sbrugman sbrugman commented Nov 30, 2023

Restructured test/ to follow the folder structure in the package
Coverage up from 45% to 58% (will increase further by #23).
Added testing instructions to CONTRIBUTING.md
Refactored S3 bucket parsing
Removed outdated test resources for inlining
Default ast_transformers for SQLHasher

Name                                                    Stmts   Miss  Cover
---------------------------------------------------------------------------
src/pycodehash/__init__.py                                  4      0   100%
src/pycodehash/datasets/__init__.py                         3      0   100%
src/pycodehash/datasets/approximate_hasher.py              14      0   100%
src/pycodehash/datasets/hive.py                            20      4    80%
src/pycodehash/datasets/local.py                           27      7    74%
src/pycodehash/datasets/s3.py                              26      2    92%
src/pycodehash/decorators.py                               23     23     0%
src/pycodehash/hashing.py                                  49     30    39%
src/pycodehash/preprocessing/__init__.py                    6      0   100%
src/pycodehash/preprocessing/decorator_stripper.py         16      9    44%
src/pycodehash/preprocessing/docstring_stripper.py         15      1    93%
src/pycodehash/preprocessing/function_stripper.py           7      0   100%
src/pycodehash/preprocessing/lines_transformer.py           2      0   100%
src/pycodehash/preprocessing/typehint_stripper.py          15      0   100%
src/pycodehash/preprocessing/whitespace_normalizer.py       7      0   100%
src/pycodehash/sql/__init__.py                              0      0   100%
src/pycodehash/sql/ast_transformer.py                       2      0   100%
src/pycodehash/sql/sql_hasher.py                           24      0   100%
src/pycodehash/sql/whitespace_filter.py                    21      3    86%
src/pycodehash/stores.py                                   78     41    47%
src/pycodehash/tracing.py                                  52     39    25%
src/pycodehash/transfomers.py                              37     26    30%
src/pycodehash/unparse.py                                   6      2    67%
src/pycodehash/utils.py                                    30     17    43%
src/pycodehash/version.py                                   1      0   100%
---------------------------------------------------------------------------
TOTAL                                                     485    204    58%

@sbrugman sbrugman changed the title TST: extend tests and measure coverage TST: extend tests, various improvements and measure coverage Nov 30, 2023
@sbrugman sbrugman merged commit 4bbc805 into main Nov 30, 2023
@sbrugman sbrugman deleted the tests-cov branch November 30, 2023 14:09
@sbrugman sbrugman added the tests Changes to tests label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Changes to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants