# jacoco\&mutation

jacoco: if the quantity of the unit test is enough.

mutation: if the quality of the unit test is good.

## 1. Jacoco

jacoco: cover those branches, all of the possible way to get to each line.

there are 8 branches for try with resource block. actually, there is only 6. hardly to cover them.

## 2. Mutation

<https://www.baeldung.com/java-mutation-testing-with-pitest>

mutation: if the boundary or condition has changed, the unit test should fail, killed. Or survived which means the unit test is not good.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lin-4.gitbook.io/test/mutation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
