Skip to main content
This package provides a byte-code based mutation analysis framework for Python. It computes the mutation score (The quality score) of your doctests. Bytecode based mutation analysis ensures that invalid mutants are completely avoided (unlike source code based mutants), and also that trivial redundant and equivalent mutants (that can be distinguished by compiler) are already removed. It uses coverage analysis to ensure that only covered mutants that have a chance to be detected are run. It also includes randomized evaluation of equivalent mutants (use -a to set the number of attempts to be made).

Compatibility
-------------
It was tested on Python 3.6


To run
------

python xmutant.py -a <attempts> <module to be tested>

Mutation Operators (on bytecode)
--------------------------------

- modify constants
- replace boolean comparators (< <= == != > >=)
- replace arithmetic operators (+ - * / // ./. ** % << >> ^)
- remove unary negation and invert
- invert unary signs
- swap 'and' and 'or' in boolean expressions
- swap inplace 'and' and 'or' in assignments
- swap 'jump if * or pop' and 'jump if * and pop'
- swap 'pop if true' and 'pop if false'

Metadata

Release files for xmutant 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xmutant 0.3
File Size Uploaded Provenance
xmutant-0.3.tar.gz 13.0 kB Without provenance Details

Release files / xmutant-0.3.tar.gz

Download URL xmutant-0.3.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
714007e179991cb82fb09155b1321835766b9ebe9f281c485043470a80c0dd4c
BLAKE2b-256 checksum
How to use checksums
f32a5fbc911f689c7541eca6298b558d9fe764ed4cdcc8cc5ade9756f85b497c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for xmutant 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page