crytic / crytic/echidna

[Bug-Candidate]: Coverage html doesn't match source code for certain characters

Open
#1,168 3 comments 0 reactions 0 assignees View on GitHub
bug usability
Dominant language
Haskell
Stars
3.2k
Forks
432
Avg merge
1d 20h
Merged PRs (30d)
5

Description

### Describe the issue:

The coverage html output doesn't seem to support full unicode output

### Code example to reproduce the issue:

If the following is in the contracts:
```
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* XXXXXXXXXXXXXXXXXXX */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
```

the coverage output turns it into:
```
391 | | /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
392 | | /* XXXXXXXXXXXXXXXXXXX */
393 | | /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
394 | |
395 | | /// @dev Mints `amount` tokens to `to`, increasing the total supply.
```

### Version:

master

### Relevant log output:

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.