# Shown code coverage differs between app.codecov.io and codecov.io

**URL:** <https://community.codecov.com/t/shown-code-coverage-differs-between-app-codecov-io-and-codecov-io/3196>\
**Category:** Bug Fixes\
**Created:** [September 10, 2021, 11:18pm UTC](https://community.codecov.com/t/shown-code-coverage-differs-between-app-codecov-io-and-codecov-io/3196 "2021-09-10T23:18:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rillig](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/rillig/32/2085_2.png) [@rillig](https://community.codecov.com/u/rillig)\
**Post date:** [September 10, 2021, 11:18pm UTC](https://community.codecov.com/t/shown-code-coverage-differs-between-app-codecov-io-and-codecov-io/3196/1 "2021-09-10T23:18:40Z")

</div>

### Description

[Codecov](https://app.codecov.io/gh/rillig/gobco/src/2309db39419678fdfb8d4e45933b94fcceba4d4c/main.go) shows most lines in light gray, some in red, yellow, green. These numbers are totally wrong, for example there are tests that cover each line of the function `printCond`.  
[Codecov](https://codecov.io/gh/rillig/gobco/src/2309db39419678fdfb8d4e45933b94fcceba4d4c/main.go) (without the `app`) shows plausible coverage.

### CI/CD or Build URL

> **[Travis CI](https://app.travis-ci.com/github/rillig/gobco)**
>
> Travis CI enables your team to test and ship your apps with confidence. Easily sync your projects with Travis CI and you'll be testing your code in minutes.

### Uploader

`bash <(curl -s https://codecov.io/bash)`

### Codecov Output

[https://api.travis-ci.com/v3/job/536750600/log.txt](https://api.travis-ci.com/v3/job/536750600/log.txt)

```auto
 / ____ | | |
| | _____ | | ______  _______
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |__/ (_| (_) \ V /
 \ _____\___ / \ __,_|\___ |\ ___\___ / \_/
                              Bash-1.0.6

e[0;36m==>e[0m git version 2.27.0 found
e[0;36m==>e[0m curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets 
e[0;90m==>e[0m Travis CI detected.
    e[0;90mcurrent dir: e[0m /home/travis/gopath/src/github.com/rillig/gobco
    e[0;90mproject root:e[0m .
    e[0;32mYaml not found, that's ok! Learn more ate[0m e[0;36mhttp://docs.codecov.io/docs/codecov-yamle[0m
e[0;90m==>e[0m Running gcov in . e[0;90m(disable via -X gcov)e[0m
e[0;90m==>e[0m Python coveragepy not found
e[0;90m==>e[0m Searching for coverage reports in:
    e[0;32m+e[0m .
    e[0;90m->e[0m Found 1 reports
e[0;90m==>e[0m Detecting git/mercurial file structure
e[0;90m==>e[0m Appending build variables
    e[0;32m+e[0m TRAVIS_OS_NAME
    e[0;32m+e[0m master
e[0;90m==>e[0m Reading reports
    e[0;32m+e[0m ./coverage.txt e[0;90mbytes=12217e[0m
e[0;90m==>e[0m Appending adjustments
    e[0;36mhttps://docs.codecov.io/docs/fixing-reportse[0m
    e[0;32m+e[0m Found adjustments
e[0;90m==>e[0m Gzipping contents
        4.0K	/tmp/codecov.ymPAxe.gz
e[0;90m==>e[0m Uploading reports
    e[0;90murl:e[0m https://codecov.io
    e[0;90mquery:e[0m branch=master&commit=2309db39419678fdfb8d4e45933b94fcceba4d4c&build=87.3&build_url=&name=&tag=&slug=rillig%2Fgobco&service=travis&flags=&pr=false&job=536750600&cmd_args=
e[0;90m->e[0m Pinging Codecov
https://codecov.io/upload/v4?package=bash-1.0.6&token=<hidden>&package=bash-1.0.6&token=&branch=master&commit=2309db39419678fdfb8d4e45933b94fcceba4d4c&build=87.3&build_url=&name=&tag=&slug=rillig%2Fgobco&service=travis&flags=&pr=false&job=536750600&cmd_args=
e[0;90m->e[0m Uploading to
https://storage.googleapis.com/codecov/v4/raw/2021-09-10/BFD5C22F5FE49395816EAA874097A9AC/2309db39419678fdfb8d4e45933b94fcceba4d4c/a2de9c32-57bc-4f4a-8e14-18c331eea734.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210910%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210910T225919Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=8c70d907e9f06e8d109109423609a03fd66ff0eb056b8bff03f2fce81b70cd3a
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed

  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 3874 0 0 100 3874 0 16089 --:--:-- --:--:-- --:--:-- 16141
    e[0;32m->e[0m Reports have been successfully queued for processing at e[0;36mhttps://codecov.io/github/rillig/gobco/commit/2309db39419678fdfb8d4e45933b94fcceba4d4ce[0m

```

### Expected Results

Please provide what you expect to have happened (e.g. a file that has missing coverage on a particular line).

### Actual Results

Please provide what actually happened.

### Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [September 21, 2021, 3:18pm UTC](https://community.codecov.com/t/shown-code-coverage-differs-between-app-codecov-io-and-codecov-io/3196/2 "2021-09-21T15:18:00Z")

</div>

@rillig, we rolled out a fix for this, and it’s looking the same now. Are you still seeing an issue?

---

<div class="post-metadata">

**Author:** ![rillig](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/rillig/32/2085_2.png) [@rillig](https://community.codecov.com/u/rillig)\
**Post date:** [September 28, 2021, 11:17pm UTC](https://community.codecov.com/t/shown-code-coverage-differs-between-app-codecov-io-and-codecov-io/3196/3 "2021-09-28T23:17:49Z")

</div>

Thank you very much, now it looks perfect. 🙂
