-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor codebase extensively; add input validation.
- Loading branch information
Showing
156 changed files
with
6,974 additions
and
5,057 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,3 +78,5 @@ target/ | |
make_env.sh | ||
|
||
FauxPyReport* | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
========================= | ||
Entry Points and Handlers | ||
========================= | ||
|
||
FauxPy can work in two different modes: **Pytest Mode** and **Analysis Mode**. | ||
|
||
- **Pytest Mode** is activated when FauxPy is used with commands like | ||
``pytest tests --src my_code``. In this mode, FauxPy runs as a Pytest | ||
plugin, integrating itself into the test execution pipeline to gather | ||
information about the tests being run. | ||
|
||
- **Analysis Mode** is activated when FauxPy is used with commands like | ||
``fauxpy -v``. In this mode, FauxPy runs as a standalone application, | ||
independently of Pytest. | ||
|
||
Module ``main.py`` is the main entry point for FauxPy, determining | ||
FauxPy's mode based on how FauxPy is executed. | ||
|
||
Module ``main.py`` | ||
================== | ||
|
||
This module is the main entry point for FauxPy, containing six functions. | ||
The function ``fauxpy_analysis_mode`` is called when FauxPy starts in Analysis Mode. | ||
It creates an instance of the ``FauxpyAnalysisModeHandler`` class, which manages | ||
the whole Analysis Mode. | ||
|
||
The other five functions in ``main.py`` are Pytest hooks executed in Pytest Mode. | ||
Module ``main.py`` instantiates a ``FauxpyPytestModeHandler`` object as a global variable. | ||
These hooks call corresponding methods in the object, delegating control | ||
of Pytest Mode to class ``FauxpyPytestModeHandler``. | ||
|
||
Below are the details of these six functions in ``main.py``. | ||
|
||
.. automodule:: fauxpy.main | ||
:members: | ||
|
||
Pytest Mode Handler | ||
=================== | ||
|
||
Class ``FauxpyPytestModeHandler`` is responsible for managing Pytest Mode. | ||
Details of this class are provided below. | ||
|
||
.. automodule:: fauxpy.command_line.pytest_mode.handler | ||
:members: | ||
|
||
Analysis Mode Handler | ||
===================== | ||
|
||
Class ``FauxpyAnalysisModeHandler`` manages Analysis Mode. | ||
Details of this class are provided below. Currently, Analysis Mode | ||
supports only one command, ``fauxpy --version``, which shows | ||
the current version of FauxPy. | ||
|
||
.. automodule:: fauxpy.command_line.analysis_mode.handler | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
=================================== | ||
Spectrum-Based Fault Localization | ||
=================================== | ||
|
||
.. automodule:: fauxpy.fault_localization.sbfl.session_lib | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,15 @@ | ||
# Triangle Area Example | ||
|
||
This directory contains an | ||
example project demonstrating | ||
the use of FauxPy to perform | ||
fault localization on a simple | ||
Python program that | ||
calculates the area | ||
of a triangle. | ||
|
||
## Getting Started | ||
example project to demonstrate | ||
the use of FauxPy. | ||
|
||
To get started with this example, | ||
please refer to the detailed | ||
walkthrough available in the | ||
FauxPy documentation on | ||
Read the Docs: | ||
|
||
[Read the Docs: FauxPy | ||
Usage Example](https://fauxpy.readthedocs.io/en/latest/user/getting_started.html) | ||
please refer to the | ||
[Usage Example](https://fauxpy.readthedocs.io/en/latest/user/getting_started.html) | ||
page on FauxPy documentation. | ||
|
||
The documentation provides step-by-step | ||
instructions on setting up the | ||
environment, running the example, and | ||
understanding the results. | ||
|
||
## Additional Resources | ||
|
||
- [FauxPy Repository](https://github.com/atom-sw/fauxpy) | ||
- [FauxPy Documentation](https://fauxpy.readthedocs.io) | ||
|
||
For any further assistance or | ||
questions, feel free to open an | ||
issue on our | ||
[GitHub repository](https://github.com/atom-sw/fauxpy/issues). |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.