Skip to content

Commit

Permalink
Updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta committed Sep 10, 2024
1 parent ecd7ff9 commit 12fa6cc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Our test covered over 50% of the code of **counter** smart contract:
55.56% coverage, 10/18 lines covered
```

The detailed report is attached below:
The detailed code coverage generated by Tarpaulin is attached below.

<details>
<summary>📃  Code coverage report</summary>
Expand All @@ -167,6 +167,8 @@ Topics to cover:
- `app.store_code{:rust}`
- `app.instantiate_contract{:rust}`

---

### Testing initialization with a specific value

```rust copy showLineNumbers{40} filename="test_counter.rs"
Expand Down Expand Up @@ -236,6 +238,8 @@ test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

## Testing counter increment

### Testing increment by 1
Expand Down Expand Up @@ -311,6 +315,8 @@ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

### Testing increment overflow

```rust copy showLineNumbers{97} filename="test_counter.rs"
Expand Down Expand Up @@ -392,6 +398,8 @@ test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

## Testing counter decrement

### Testing decrement by 1
Expand Down Expand Up @@ -469,6 +477,8 @@ test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

### Testing decrement underflow

```rust copy showLineNumbers{164} filename="test_counter.rs"
Expand Down Expand Up @@ -552,6 +562,8 @@ test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

## Testing counter value changes

```rust copy showLineNumbers{201} filename="test_counter.rs"
Expand Down Expand Up @@ -634,6 +646,8 @@ test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

## Test cases put all together

Below is the final version of the `test_counter.rs` file, containing all previously presented test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ cargo nextest run

(todo: extremely detailed explanation)

---

### Testing initialization with a specific value

```rust copy showLineNumbers{22} filename="test_counter.rs"
Expand Down Expand Up @@ -176,6 +178,8 @@ test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

## Testing counter increment

### Testing increment by 1
Expand Down Expand Up @@ -239,6 +243,8 @@ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

### Testing increment overflow

```rust copy showLineNumbers{56} filename="test_counter.rs"
Expand Down Expand Up @@ -303,6 +309,8 @@ test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

## Testing counter decrement

### Testing decrement by 1
Expand Down Expand Up @@ -368,6 +376,8 @@ test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

### Testing decrement underflow

```rust copy showLineNumbers{94} filename="test_counter.rs"
Expand Down Expand Up @@ -434,6 +444,8 @@ test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

## Testing counter value changes

```rust copy showLineNumbers{114} filename="test_counter.rs"
Expand Down Expand Up @@ -499,6 +511,8 @@ test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtere

(todo: extremely detailed explanation)

---

## Test cases put all together

Below is the final content of the `test_counter.rs` file, containing all previously presented test
Expand Down

0 comments on commit 12fa6cc

Please sign in to comment.