Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,74 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Table of Contents
|
| 2 |
+
|
| 3 |
+
* [TestCodeFlow](#TestCodeFlow)
|
| 4 |
+
* [TestCodeFlow](#TestCodeFlow.TestCodeFlow)
|
| 5 |
+
* [TestCodeFileEditAtomicFlow](#TestCodeFileEditAtomicFlow)
|
| 6 |
+
* [TestCodeFileEditAtomicFlow](#TestCodeFileEditAtomicFlow.TestCodeFileEditAtomicFlow)
|
| 7 |
+
* [\_\_init\_\_](#__init__)
|
| 8 |
+
* [CodeTestingAtomicFlow](#CodeTestingAtomicFlow)
|
| 9 |
+
* [CodeTestingAtomicFlow](#CodeTestingAtomicFlow.CodeTestingAtomicFlow)
|
| 10 |
+
|
| 11 |
+
<a id="TestCodeFlow"></a>
|
| 12 |
+
|
| 13 |
+
# TestCodeFlow
|
| 14 |
+
|
| 15 |
+
<a id="TestCodeFlow.TestCodeFlow"></a>
|
| 16 |
+
|
| 17 |
+
## TestCodeFlow Objects
|
| 18 |
+
|
| 19 |
+
```python
|
| 20 |
+
class TestCodeFlow(SequentialFlow)
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
This class is used to test code. It is a sequential flow that runs the following steps:
|
| 24 |
+
1. Prepares the code to be tested, it is composed of the code to be tested and necessary import statements manually added.
|
| 25 |
+
2. Opens the code in VSCode and waits for the user to clode the vscode session. The user is able to add tests.
|
| 26 |
+
3. The following will be tested:
|
| 27 |
+
a. (Default & Compulsory) Code syntax;
|
| 28 |
+
b. (Added by user) Any other tests.
|
| 29 |
+
4. Runs the test and returns the output.
|
| 30 |
+
|
| 31 |
+
*Input Interface*:
|
| 32 |
+
- `code` (str): The code to be tested.
|
| 33 |
+
|
| 34 |
+
*Output Interface*:
|
| 35 |
+
- `feedback` (str): The test results.
|
| 36 |
+
|
| 37 |
+
<a id="TestCodeFileEditAtomicFlow"></a>
|
| 38 |
+
|
| 39 |
+
# TestCodeFileEditAtomicFlow
|
| 40 |
+
|
| 41 |
+
<a id="TestCodeFileEditAtomicFlow.TestCodeFileEditAtomicFlow"></a>
|
| 42 |
+
|
| 43 |
+
## TestCodeFileEditAtomicFlow Objects
|
| 44 |
+
|
| 45 |
+
```python
|
| 46 |
+
class TestCodeFileEditAtomicFlow(CodeFileEditAtomicFlow)
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
Refer to: https://huggingface.co/Tachi67/CodeFileEditFlowModule/tree/main
|
| 50 |
+
|
| 51 |
+
<a id="__init__"></a>
|
| 52 |
+
|
| 53 |
+
# \_\_init\_\_
|
| 54 |
+
|
| 55 |
+
<a id="CodeTestingAtomicFlow"></a>
|
| 56 |
+
|
| 57 |
+
# CodeTestingAtomicFlow
|
| 58 |
+
|
| 59 |
+
<a id="CodeTestingAtomicFlow.CodeTestingAtomicFlow"></a>
|
| 60 |
+
|
| 61 |
+
## CodeTestingAtomicFlow Objects
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
class CodeTestingAtomicFlow(InterpreterAtomicFlow)
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
This class inherits from InterpreterAtomicFlow and is used to test code.
|
| 68 |
+
|
| 69 |
+
*Input Interface*:
|
| 70 |
+
- `temp_code_file_location`: Location of the file containing the code to be tested.
|
| 71 |
+
|
| 72 |
+
*Output Interface*:
|
| 73 |
+
- `feedback`: Feedback from the test (i.e. test results).
|
| 74 |
+
|