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

Attempt to increase coverage #73

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Attempt to increase coverage #73

merged 1 commit into from
Jul 24, 2024

Conversation

GiacomoPope
Copy link
Owner

No description provided.

@GiacomoPope GiacomoPope merged commit 015ce9e into main Jul 24, 2024
13 checks passed
@GiacomoPope GiacomoPope deleted the increase_coverage branch July 24, 2024 14:09
@@ -49,7 +49,7 @@ def set_drbg_seed(self, seed):

self._drbg = AES256_CTR_DRBG(seed)
self.random_bytes = self._drbg.random_bytes
except ImportError as e:
except ImportError as e: # pragma: no cover
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we couldn't test it through mocking...

@@ -60,14 +60,16 @@ def test_equality(self):
f1 = self.R.random_element()
f2 = -f1
self.assertEqual(f1, f1)
# We don't cover the case of f1 being zero, as it's incredibly unlikely to happen
Copy link
Collaborator

@tomato42 tomato42 Jul 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's something that hypothesis could help with :)

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.

2 participants