Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Redundancy/go-sync
/ functions
Functions
329 in github.com/Redundancy/go-sync
⨍
Functions
329
◇
Types & classes
63
Method
RemoveBytes
(bs []byte, length int)
rollsum/rollsum_32_base.go:44
Method
Reset
Reset all hashes to initial state
filechecksum/filechecksum.go:73
Method
Reset
()
circularbuffer/noalloc.go:53
Method
Reset
()
circularbuffer/noalloc.go:141
Function
SequenceLimit
read from 'readers' in sequence up to a limit of 'size'
util/readers/sequencelimit.go:8
Method
Size
size of the hash in bytes
rollsum/rollsum_32_base.go:78
Method
Swap
(i, j int)
comparer/merger.go:242
Method
Swap
Sortable interface
index/index.go:133
Method
Swap
(i, j int)
blocksources/helpers.go:79
Method
Swap
(i, j int)
blocksources/helpers.go:105
Method
Swap
(i, j int)
blocksources/sortableBlockResponse.go:13
Function
TestBlockEqualsItself
(t *testing.T)
filechecksum/verifier_test.go:16
Function
TestBlockSourceBaseError
(t *testing.T)
blocksources/blocksourcebase_test.go:83
Function
TestBlockSourceRequest
(t *testing.T)
blocksources/blocksourcebase_test.go:107
Function
TestBlockWithinSpan
(t *testing.T)
comparer/merger_test.go:301
Function
TestChecksumBlocksTheSame
Each of the data blocks is the same, so the checksums for the blocks should be the same
filechecksum/filechecksum_test.go:140
Function
TestChecksumGenerationContainsHashes
(t *testing.T)
filechecksum/filechecksum_test.go:54
Function
TestChecksumGenerationEndsWithFilechecksum
(t *testing.T)
filechecksum/filechecksum_test.go:14
Function
TestChecksumGenerationReturnsCorrectChecksumCount
(t *testing.T)
filechecksum/filechecksum_test.go:35
Function
TestConcurrentBlockRequests
(t *testing.T)
blocksources/blocksourcebase_test.go:137
Function
TestCreateAndCloseBlockSourceBase
(t *testing.T)
blocksources/blocksourcebase_test.go:56
Function
TestCreateC2Buffer
(t *testing.T)
circularbuffer/noalloc_test.go:20
Function
TestDetectsAppendedContent
(t *testing.T)
comparer/comparer_test.go:219
Function
TestDetectsInjectedContent
(t *testing.T)
comparer/comparer_test.go:196
Function
TestDetectsModifiedContent
(t *testing.T)
comparer/comparer_test.go:241
Function
TestDetectsModifiedPartialBlockAtEnd
(t *testing.T)
comparer/comparer_test.go:287
Function
TestDetectsPartialBlockAtEnd
(t *testing.T)
comparer/comparer_test.go:265
Function
TestDetectsPrependedContent
(t *testing.T)
comparer/comparer_test.go:174
Function
TestDetectsUnmodifiedPartialBlockAtEnd
(t *testing.T)
comparer/comparer_test.go:308
Function
TestDoublyDuplicatedBlocks
(t *testing.T)
comparer/merger_test.go:255
Function
TestDuplicatedLocalBlocks
(t *testing.T)
comparer/merger_test.go:219
Function
TestDuplicatedReferenceBlocks
(t *testing.T)
comparer/merger_test.go:184
Function
TestErrorWatcher
(t *testing.T)
blocksources/blocksourcebase_test.go:66
Function
TestEvictedRegession1
(t *testing.T)
circularbuffer/noalloc_test.go:50
Function
TestFillBuffer
(t *testing.T)
util/readers/uniform_test.go:73
Function
TestFindDuplicatedBlocksInIndex
(t *testing.T)
index/index_test.go:152
Function
TestFindStrongInIndex
(t *testing.T)
index/index_test.go:92
Function
TestFindTwoDuplicatedBlocksInIndex
(t *testing.T)
index/index_test.go:181
Function
TestFindWeakInIndex
(t *testing.T)
index/index_test.go:34
Function
TestFixedSizeResolverSplitsBlocksOfDesiredSize
(t *testing.T)
blocksources/fixed_size_block_resolver_test.go:26
Function
TestGetBlock
(t *testing.T)
circularbuffer/noalloc_test.go:63
Function
TestHandler
(t *testing.T)
blocksources/httpblocksource_test.go:73
Function
TestHttpBlockSource
(t *testing.T)
blocksources/httpblocksource_test.go:85
Function
TestHttpBlockSource404
(t *testing.T)
blocksources/httpblocksource_test.go:117
Function
TestHttpBlockSourceOffsetBlockRequest
(t *testing.T)
blocksources/httpblocksource_test.go:147
Function
TestHttpBlockSourcePartialContentRequest
(t *testing.T)
blocksources/httpblocksource_test.go:174
Function
TestHttpBlockSourceVerification
(t *testing.T)
blocksources/httpblocksource_test.go:222
Function
TestInvalidReaderLength_Strong
Test that partial content that ends in the middle of a strong hash is caught correctly
filechecksum/filechecksum_test.go:262
Function
TestInvalidReaderLength_Weak
Test that partial content that ends in the middle of a weak hash is caught correctly
filechecksum/filechecksum_test.go:242
Function
TestMakeIndex
* ChunkOffset uint // the size of the block Size int64 WeakChecksum []byte StrongChecksum []byte */
index/index_test.go:21
Function
TestMergeAdjacentBlocksAfter
(t *testing.T)
comparer/merger_test.go:7
Function
TestMergeAdjacentBlocksBefore
(t *testing.T)
comparer/merger_test.go:37
Function
TestMergeAdjacentBlocksBetween
(t *testing.T)
comparer/merger_test.go:72
Function
TestMissingBlocksOffsetStart
(t *testing.T)
comparer/merger_test.go:114
Function
TestMissingCenterBlock
(t *testing.T)
comparer/merger_test.go:136
Function
TestMissingEndBlock
(t *testing.T)
comparer/merger_test.go:162
Function
TestMultiSplit
(t *testing.T)
comparer/comparer_test.go:160
Function
TestMultiUniformReader
(t *testing.T)
util/readers/uniform_test.go:42
Function
TestMultipleResultsForDuplicatedBlocks
(t *testing.T)
comparer/comparer_test.go:330
Function
TestNilBlockSpanList
(t *testing.T)
comparer/merger_test.go:350
Function
TestNonRepeatingSequenceIsDifferent
(t *testing.T)
util/readers/nonrepeating_test.go:23
Function
TestNonRepeatingSequenceReader
This is only a very basic test
util/readers/nonrepeating_test.go:10
Function
TestNotFoundStrongInIndexAtEnd
(t *testing.T)
index/index_test.go:112
Function
TestNotFoundStrongInIndexInCenter
(t *testing.T)
index/index_test.go:130
Function
TestNullResolverGivesBackTheSameBlocks
(t *testing.T)
blocksources/fixed_size_block_resolver_test.go:7
Function
TestOutOfOrderRequestCompletion
(t *testing.T)
blocksources/blocksourcebase_test.go:178
Function
TestPartialBlock
(t *testing.T)
filechecksum/verifier_test.go:60
Function
TestPatchingEnd
(t *testing.T)
patcher/sequential/sequential_test.go:101
Function
TestPatchingEntirelyMissing
(t *testing.T)
patcher/sequential/sequential_test.go:149
Function
TestPatchingStart
(t *testing.T)
patcher/sequential/sequential_test.go:51
Function
TestPrependedBlocks
(t *testing.T)
filechecksum/filechecksum_test.go:188
Function
TestRangeSlice
(t *testing.T)
blocksources/blocksourcebase_test.go:47
Function
TestReadFirstBlock
(t *testing.T)
blocksources/readseeker_blocksource_test.go:18
Function
TestReadIntoLargerBuffer
(t *testing.T)
util/readers/uniform_test.go:27
Function
TestRegression1
(t *testing.T)
comparer/comparer_test.go:352
Function
TestRegression1Merger
(t *testing.T)
comparer/merger_test.go:373
Function
TestRegression2
(t *testing.T)
rollsum/rollsum_32_test.go:72
Function
TestRequestCountLimiting
(t *testing.T)
blocksources/blocksourcebase_test.go:239
Function
TestResettingTheRollsum32
(t *testing.T)
rollsum/rollsum_32_test.go:137
Function
TestRollsumLength
(t *testing.T)
filechecksum/filechecksum_test.go:82
Function
TestRollsumLengthWithPartialBlockAtEnd
(t *testing.T)
filechecksum/filechecksum_test.go:110
Function
TestSplit
(t *testing.T)
comparer/comparer_test.go:132
Function
TestSplitBlocksEqualThemselves
(t *testing.T)
filechecksum/verifier_test.go:46
Function
TestSplitWithPartial
(t *testing.T)
comparer/comparer_test.go:146
Function
TestThat32OutputLengthMatchesSize
(t *testing.T)
rollsum/rollsum_32_test.go:198
Function
TestThat32SumDoesNotChangeTheHashState
(t *testing.T)
rollsum/rollsum_32_test.go:183
Function
TestThatADesiredSizeSmallerThanABlockResultsInSingleBlocks
(t *testing.T)
blocksources/fixed_size_block_resolver_test.go:85
Function
TestThatFileSizeTruncatesBlockEnds
(t *testing.T)
blocksources/fixed_size_block_resolver_test.go:114
Function
TestThatMultipleBlocksAreSplitByRoundingDown
(t *testing.T)
blocksources/fixed_size_block_resolver_test.go:56
Function
TestThatRollsum32IsDifferentForDifferentInput
(t *testing.T)
rollsum/rollsum_32_test.go:118
Function
TestThatRollsum32IsTheSameAfterBlockSizeBytes
(t *testing.T)
rollsum/rollsum_32_test.go:29
Function
TestThatRollsum32IsTheSameAfterBlockSizeBytesWithPartialEviction
(t *testing.T)
rollsum/rollsum_32_test.go:51
Function
TestThatRollsum32RemovesBytesCorrectly
(t *testing.T)
rollsum/rollsum_32_test.go:103
Function
TestThatRollsum32SatisfiedWriterInterface
(t *testing.T)
rollsum/rollsum_32_test.go:16
Function
TestThatRollsum32SatisfiesHashInterface
(t *testing.T)
rollsum/rollsum_32_test.go:11
Function
TestTruncatingAfterWriting
(t *testing.T)
circularbuffer/noalloc_test.go:127
Function
TestTruncatingPartiallyFilledBufferResultsInSameState
(t *testing.T)
rollsum/rollsum_32_test.go:159
Function
TestTwoComparisons
(t *testing.T)
comparer/comparer_test.go:373
Function
TestUniformReaderLength
(t *testing.T)
util/readers/uniform_test.go:9
Function
TestWeakNotInIndex
(t *testing.T)
index/index_test.go:54
← previous
next →
201–300 of 329, ranked by callers