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

test: test logging calls with keywords #158

Open
python-mutation-testing opened this issue Oct 18, 2024 · 0 comments · May be fixed by #159
Open

test: test logging calls with keywords #158

python-mutation-testing opened this issue Oct 18, 2024 · 0 comments · May be fixed by #159

Comments

@python-mutation-testing

I was performing some mutation testing on Funcy, and I noticed that the logging function calls with keywords are not tested.
For example, a function call like this is not tested:

def f(x, y=2):
   return x + y

This causes the following part of the code not to be tested for its functionality:
debug.py: line 230-231:

kwargs_repr = ('%s=%s' % (key, smart_repr(value, repr_len))
                   for key, value in call._kwargs.items())

This line is covered, but its functionality still needs to be tested.
I'll add a test case for it in a pull request.

@python-mutation-testing python-mutation-testing linked a pull request Oct 18, 2024 that will close this issue
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 a pull request may close this issue.

1 participant