TypeScript coverage report

Summary

PercentThresholdTotalCoveredUncovered
99.68%80%163371628552

Files

FilenamePercentTotalCoveredUncovered
src/api.electiontonight.d.ts100.00%245724570
src/exceptions/errors.ts100.00%84840
src/db/utils.ts100.00%34340
src/utils/logger.ts100.00%47470
src/constants/schema.ts100.00%440
src/db/schema/schema.ts100.00%550
src/db/schema/candidateRace_office.ts100.00%58580
src/db/schema/countyByJurisdiction.ts100.00%75750
src/db/schema/countyExpectedVote.ts100.00%76760
src/db/schema/countyDemographic.ts100.00%64640
src/db/schema/countyExpectedVoteStratum.ts100.00%62620
src/db/schema/countyGeoStratum.ts100.00%62620
src/db/schema/countyPartyStratum.ts100.00%62620
src/db/schema/candidateVoteByParty.ts100.00%85850
src/db/schema/officeBody_electionType.ts100.00%58580
src/db/schema/electoralVote.ts100.00%1251250
src/db/schema/officeRaceCoveredDistrict.ts100.00%38380
src/db/schema/documentScope.ts100.00%26260
src/db/schema/officeVote.ts100.00%1731730
src/db/schema/voteFlag.ts100.00%1411410
src/db/schema/officeRace.ts100.00%1901900
src/db/schema/officeBody.ts100.00%39390
src/db/schema/partyByOffice.ts100.00%82820
src/db/schema/delegateDistrictCounty.ts100.00%70700
src/db/schema/delegateDistrictType.ts100.00%46460
src/db/schema/presidentialPrimaryVoteByDistrict.ts100.00%1871870
src/db/schema/delegateDistrict.ts100.00%1121120
src/db/schema/presidentialPrimaryDistrictVoteByCounty.ts100.00%2032030
src/db/schema/party.ts100.00%50500
src/db/schema/countyRegisteredVotersByParty.ts100.00%68680
src/db/schema/message.ts100.00%82820
src/db/schema/pastCandidateVote.ts100.00%57570
src/db/schema/pastCandidateVoteByCounty.ts100.00%86860
src/db/schema/pastCountyVote.ts100.00%63630
src/db/schema/stateExpectedVote.ts100.00%65650
src/db/schema/state_electionType.ts100.00%68680
src/db/schema/turnoutStage.ts100.00%30300
src/db/schema/totalExpectedVote.ts100.00%1531530
src/db/schema/state.ts100.00%1541540
src/db/schema/editorialTurnout.ts100.00%1141140
src/db/schema/jurisdictionPastRace.ts100.00%68680
src/db/schema/jurisdictionType.ts100.00%31310
src/db/schema/jurisdictionRace.ts100.00%1561560
src/db/schema/delegateAllocation.ts100.00%2382380
src/db/schema/office.ts100.00%1141140
src/db/schema/candidatePriorEstimate.ts100.00%1101100
src/db/schema/jurisdiction.ts100.00%1341340
src/db/schema/candidateAbsenteeEstimate.ts100.00%1101100
src/db/schema/candidateRace_party.ts100.00%70700
src/db/schema/candidateRace.ts100.00%1671670
src/db/schema/candidateElectoralVote.ts100.00%1551550
src/db/schema/electionType.ts100.00%90900
src/db/schema/call.ts100.00%1511510
src/db/schema/candidate.ts100.00%81810
src/db/schema/candidateVote.ts100.00%1701700
src/db/schema/county.ts100.00%1661660
src/db/schema/absenteeMethod.ts100.00%27270
src/db/schema/documentSequence.ts100.00%19190
src/db/schema/event.ts100.00%14140
src/db/schema/nationalDelegateSummary.ts100.00%38380
src/db/schema/stateDelegateSummary.ts100.00%44440
src/db/schema/streamPosition.ts100.00%26260
src/db/schema/testSchedule.ts100.00%17170
src/db/models.ts100.00%1151150
src/db/index.ts100.00%1021020
src/events/parsers/county-by-elec/types.ts100.00%330
src/utils/officeBodyUid.ts100.00%330
src/utils/documentKey.ts100.00%1151150
src/utils/truthyString.ts100.00%10100
src/events/parsers/county-by-elec/countyStrata.ts100.00%2972970
src/events/parsers/delegate-district/types.ts100.00%330
src/utils/prettifyCodes.ts100.00%30300
src/events/parsers/delegate-district/delegateDistrict.ts100.00%1261260
src/constants/docTypes.ts100.00%31310
src/constants/locations.ts100.00%10100
src/filters/schemas.ts100.00%36360
src/types.ts100.00%550
src/constants/states.ts100.00%2932930
src/lookups/states/index.ts100.00%71710
src/filters/index.ts100.00%1201200
src/constants/requests.ts100.00%110
src/requests/index.ts97.44%2732667
src/endpoints/index.ts100.00%4554550
src/events/fixtures/documentScope.ts100.00%21210
src/events/fixtures/officeBody.ts100.00%880
src/events/parsers/absentee-method/types.ts100.00%330
src/events/parsers/absentee-method/absenteeMethod.ts100.00%28280
src/events/parsers/election-race/types.ts100.00%330
src/events/parsers/election-race/candidateAbsenteeEstimate.ts100.00%52520
src/events/parsers/election-race/candidatePriorEstimate.ts100.00%52520
src/events/parsers/election-race/candidateRaceOffice.ts100.00%34340
src/events/parsers/election-race/candidateRaceParty.ts100.00%72720
src/utils/specialElection.ts100.00%660
src/events/parsers/election-race/candidateRace.ts100.00%80800
src/events/parsers/election-race/candidate.ts100.00%55550
src/events/parsers/county-by-state/types.ts100.00%330
src/constants/geography.ts100.00%110
src/events/parsers/county-by-state/county.ts100.00%87870
src/events/parsers/county-by-elec/countyByJurisdiction.ts100.00%47470
src/events/parsers/county-by-elec/countyDemographic.ts100.00%52520
src/events/parsers/county-by-elec/countyExpectedVote.ts100.00%55550
src/events/parsers/county-by-state/countyRegisteredVotersByParty.ts100.00%59590
src/events/parsers/delegate-district-type/types.ts100.00%330
src/events/parsers/delegate-district-type/delegateDistrictType.ts100.00%34340
src/events/parsers/election/types.ts100.00%330
src/events/parsers/election/electionType.ts100.00%27270
src/utils/validateTimestamp.ts100.00%660
src/events/parsers/election/jurisdictionRace.ts100.00%86860
src/events/parsers/election/jurisdictionType.ts100.00%24240
src/events/parsers/election/jurisdiction.ts100.00%44440
src/events/parsers/election-race/officeBodyElectionType.ts100.00%36360
src/events/parsers/election-race/officeRaceCoveredDistrict.ts100.00%38380
src/events/parsers/election-race/officeRace.ts100.00%91910
src/events/parsers/election-race/office.ts100.00%55550
src/events/parsers/party-lookup/types.ts100.00%330
src/events/parsers/party-lookup/party.ts100.00%35350
src/events/parsers/party-by-office/types.ts100.00%330
src/events/parsers/party-by-office/partyByOffice.ts100.00%56560
src/events/parsers/election/stateElectionType.ts100.00%32320
src/events/parsers/county-by-elec/stateExpectedVote.ts100.00%46460
src/events/parsers/county-by-state/state.ts90.10%1019110
src/results/fixtures/turnoutStage.ts100.00%24240
src/events/index.ts96.93%58656818
src/db/postgres.ts100.00%71710
src/utils/uniqs.ts100.00%30300
src/results/parsers/county-vote/types.ts100.00%330
src/results/parsers/county-vote/documentSequence.ts100.00%37370
src/results/parsers/county-vote/candidateVote.ts100.00%66660
src/results/parsers/county-vote/voteFlag.ts100.00%81810
src/results/parsers/county-vote/officeVote.ts100.00%1311310
src/results/parsers/county-vote/candidateVoteByParty.ts100.00%53530
src/results/parsers/county-vote/index.ts100.00%12120
src/results/parsers/delegate-allocation/types.ts100.00%330
src/results/parsers/delegate-allocation/index.ts98.11%1591563
src/results/parsers/national-delegate-summary/types.ts100.00%330
src/results/parsers/national-delegate-summary/index.ts100.00%1681680
src/results/parsers/delegate-vote/types.ts100.00%330
src/results/parsers/delegate-vote/index.ts100.00%5225220
src/results/parsers/editorial-turnout/types.ts100.00%330
src/results/parsers/editorial-turnout/index.ts100.00%1321320
src/results/parsers/electoral-vote/types.ts100.00%330
src/results/parsers/electoral-vote/index.ts100.00%1421420
src/results/parsers/est/types.ts100.00%330
src/results/parsers/est/index.ts100.00%2482480
src/results/parsers/msg/types.ts100.00%330
src/results/parsers/msg/index.ts100.00%1041040
src/results/parsers/streams/index.ts100.00%20200
src/results/parsers/total-expected-vote/types.ts100.00%330
src/results/parsers/total-expected-vote/index.ts100.00%1541540
src/results/index.ts98.85%1219120514
src/testSchedule/index.ts100.00%1581580
src/models.d.ts100.00%2282280
src/index.ts100.00%2452450
src/events/parsers/election/jurisdictionPastRace.ts100.00%75750
src/events/parsers/past-county-data/types.ts100.00%330
src/events/parsers/past-county-data/pastCandidateVote.ts100.00%88880
src/events/parsers/past-county-data/pastCandidateVoteByCounty.ts100.00%96960
src/events/parsers/past-county-data/pastCountyVote.ts100.00%67670