2024-06-21 16:52:45 +02:00
|
|
|
# Report for Assignment 1 - Group 82
|
|
|
|
|
|
|
|
## Project Information
|
|
|
|
|
|
|
|
- **Name:** TheFuck - Magnificent app which corrects your previous console command
|
|
|
|
- **URL:** https://github.com/dimalarcon/SEP2024-Group82-thefuck
|
|
|
|
- **Programming Language:** Python
|
|
|
|
|
|
|
|
## Code Metrics
|
|
|
|
|
|
|
|
- **Number of lines of code:** 547801 (54.7 KLOC)
|
|
|
|
- **Tool used to measure the number of lines of code:** lizard
|
|
|
|
|
2024-06-21 16:57:15 +02:00
|
|
|
.png)
|
2024-06-21 17:12:22 +02:00
|
|
|
|
|
|
|
## Coverage Measurement
|
|
|
|
|
|
|
|
- **Existing tool used to measure the coverage:** coverage.py
|
|
|
|
- **Coverage result:** 94%
|
|
|
|
|
|
|
|
.png)
|
|
|
|
.png)
|
2024-06-21 19:14:05 +02:00
|
|
|
|
|
|
|
## Tasks
|
|
|
|
|
|
|
|
Dmitri Bespalii
|
|
|
|
### Function 1: get_new_command in /rules/cd_correction.py
|
|
|
|
#### 1. Function Instrumentation
|
|
|
|
|
|
|
|
- **Before instrumentation:**
|
|
|
|
|
|
|
|
.png)
|
|
|
|
|
|
|
|
- **After instrumentation:**
|
|
|
|
|
|
|
|
.png)
|
|
|
|
.png)
|
|
|
|
|
|
|
|
- **Write all information about conditional branches to console:**
|
|
|
|
|
|
|
|
.png)
|
|
|
|
|
|
|
|
#### 2. Coverage Improvement
|
|
|
|
|
|
|
|
- **Coverage before adding new tests to the corresponding test file: /tests/rules/test_cd_correction.py**
|
|
|
|
|
|
|
|
.png)
|
|
|
|
|
|
|
|
- **Creating new tests to cover the function**
|
|
|
|
|
|
|
|
.png)
|
|
|
|
|
|
|
|
- **Coverage aftering adding new tests to the corresponding test file: /tests/rules/test_cd_correction.py**
|
|
|
|
|
|
|
|
.png)
|