Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance from O(n2) to O(n) (#2)
* First commit of new version * Improve error handling also remove unnecessary tests * Improve error handling also remove unnecessary tests * Fix total number of statements * Make ParseTotalStatements a method of CoverProfile instead of normal function * Sum the total statements in the ParseCoverProfile function * Uses ok instead exists to follow Go community common pratices * Simplify code using os.ReadDir instead of filepath.Walk since there is no subdirectories * Improves outputs * Unexport function already called in the object instantiation (newCoverProfile) * Rename testdata directory * New line should be added by print * Fix bug on output for many functions * Generate cover profiles * Remove useless check * Got everything working * Update gitignore * Refactored * Improve test to check stringer interface * Delete code commented out * Add table tests for two biggest behaviours * Add simplecode testdata directory * Add integration tests using testscript * Move specific test of String() method to testscript * Nothing else on my code uses dash * Update the readme
- Loading branch information