Skip to content

Source files that lack sufficient test coverage #1321

@ckeshava

Description

@ckeshava

The following files have disconcertingly low test-coverage. I'm calling it out here so that interesting folks can contribute good tests to cover this gap. npx jest --coverage command will reproduce this output on your local machines. I have identified the file-path prefix in cases where the file names are not unique. All of the below files require better test coverage, especially on the branching statements.

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 88.73 73.56 82.23 88.58
src 0 0 0 0
index.tsx 0 0 0 0 1-37
api.ts 31.57 0 0 21.21 18-19,27-33,45-64,75-90,101-112
GeneralInfoCard.tsx 33.33 0 0 30.43 23-55
src/containers/AMMRankingsindex.tsx 37.5 0 0 35.89 24-111
src/containers/App/navigation.ts 47.82 27.27 14.28 52.63 16,39-74
BarChartVersion.tsx 40.42 25.8 16.66 42.22 48-70,106-111,121-131,156-200
src/containers/Token/IOU 43.75 0 0 42.85
src/containers/Token/MPT 43.85 0 0 42.85
src/containers/Vault/VaultDepositors/api (this file is unused, can be ignored for the time being) 0 0 0 0
src/containers/shared/components/Transaction/DIDDelete/index.ts 0 100 100 0 1-9
src/containers/shared/components/Transaction/utils 26.66 0 0 26.66
vaultUtils.ts 26.66 0 0 26.66 11-16,30-41
src/rippled/accountState.ts 20.68 0 0 20.68 62-122
ledgers.ts 30 0 0 30 12-30
offers.ts 17.24 0 0 17.24 21-67
token.ts 26.31 0 0 26.31 26-67
rippled.ts 42.01 21.88 43.18 42.38 ...65-683,690,695,711,733,750-771,782-803,819-830,838-856,906,910,914

Furthermore, we need to set up guard rails for ensuring minimum patch-test coverage on new PRs coming into the Explorer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions