This repository was archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
WIP: HashFromNode and VerifyDepTree #959
Merged
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
84b3567
HashFromNode and VerifyDepTree
karrick ae2c30e
added package declarations at top of all test go files
karrick 1a76ff6
refactor based on feedback from @sdboyer
karrick 66fe4eb
writes NULL byte after writing to hash
karrick 5c97180
added copywrite notification for dummy files
karrick 546d65f
test scaffolding dirs and files have meaningful names
karrick f1d5d85
use filepath function to locate testdata_digest directory
karrick b6d16e1
convert CRLF to LF when hashing file contents
karrick 9a7209d
added copywrite notification for digest{,_test}.go
karrick 581e51a
fixes `gosimple $PKGS` lint suggestion
karrick a298630
lineEndingReader is more simplified than lineEndingWriterTo
karrick f0b532d
bug fixes and better testing for lineEndingReader
karrick 911fda4
TestScaffolding prints testdata_digest directory
karrick ecbbf03
pathnames returned as keys to VerifyDepTree normalized with filepath.…
karrick 0f7b419
continue printing VerifyDepTree response
karrick 443fcd3
comments and some logic changes
karrick 8575040
normalize pathnames as keys for expected digests map
karrick 541b3f8
no longer dumps status output during testing
karrick 0a01713
no longer dumps status output during testing
karrick 8a0c365
two loop solution
karrick cba6ebe
O(n) loop for CRLF -> LF translation in lineEndingReader
karrick 59a1046
typos
karrick c5be3d8
NotInLock loop more easy to read
karrick 87959d0
DigestFromPathname -> DigestFromDirectory
karrick 29b1709
sets element in backing array to nil after popping off queue
karrick 17e7c9d
comments updated
karrick 0df696c
code cleanup and documentation updates
karrick f02d479
VerifyDepTree reports all NotInLock file system nodes
karrick e9ff6b2
additional test cases
karrick fbe5d64
VerifyDepTree test displays actual hash values when got status does n…
karrick 48cd664
DirWalk
karrick 845c95e
repeatedly uses io.CopyBuffer with pre-allocated buffer
karrick 9a883e8
DigestFromDirectory uses DirWalk
karrick a252c36
public type has properly formatted documentation
karrick 83ad7c6
DigestFromDirectory handles Lstat error from DirWalk
karrick a9bb8cd
removed constant no longer being used
karrick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
use filepath function to locate testdata_digest directory
- Loading branch information
commit f1d5d8503f0917aff63e32cdd9103f87fb6cac08
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this + the preceding line can be reduced to
no?