Core suite of tests for Dataproofer. These tests help detect common indicators of database or Excel cut-offs which may suggest missing data.
src/numberOfRowsIs65k.js:12-31
Test to see if number of rows is exactly 65,536 rows (cutoff by Excel)
Parameters
rows
Array an array of objects representing rows in the spreadsheetcolumnHeads
Array an array of strings for column names of the spreadsheet
Returns Object describing the result
src/integerEquals2097152.js:13-65
Integers at their upper limit
Parameters
rows
Array an array of objects representing rows in the spreadsheetcolumnHeads
Array an array of strings for column names of the spreadsheet
Returns Object describing the result
src/checkDuplicateRows.js:13-73
Check for any duplicate rows in the spreadsheet.
Parameters
rows
Array an array of objects representing rows in the spreadsheetcolumnHeads
Array an array of strings for column names of the spreadsheetinput
Object accept user input, such as selected Columns
Returns Object describing the result
src/stringsHaveExactly255Characters.js:14-66
Determine the cells that have exactly 255 characters (SQL upper limit error). See ProPublica's bad data guide for further information https://github.com/propublica/guides/blob/master/data-bulletproofing.md#integrity-checks-for-every-data-set
Parameters
rows
Array an array of objects representing rows in the spreadsheetcolumnHeads
Array an array of strings for column names of the spreadsheet
Returns Object describing the result
git clone git@github.com:dataproofer/core-suite.git
cd core-suite
npm install
- How to
- Helper Scripts
- Templates
We use documentation.js, but have created a handy script for regenerating documentation.
npm run docs
Then open up and check your docs in DOCUMENTATION.md