aboutsummaryrefslogtreecommitdiff
path: root/repo_test.go
AgeCommit message (Collapse)Author
2021-09-29try to fix symlink tests for MacOSn-peugnet
2021-09-29support symlinks if it is internal to sourcen-peugnet
adapt tests
2021-09-29move old funcs to repo_test and add roundtrip testn-peugnet
2021-09-24fix symlink tests on windowsn-peugnet
split into symlink and NotReadable tests and do not build nowindows_test on windows.
2021-09-23Testing with Fdelta as the differn-peugnet
2021-09-23better error handling and start checking symlinksn-peugnet
2021-09-23better tests (util/io subtests + check log output)n-peugnet
2021-09-22fix mystical bug by making multiple passesn-peugnet
We make ne passes while new blocks have been added. This way we are assured that the result will be the same on following runs. result : 161 /tmp/test-1/00001/recipe 161 /tmp/test-1/00001/files 0 /tmp/test-1/00001/hashes 40 /tmp/test-1/00001/chunks 482 /tmp/test-1/00001 9904052 /tmp/test-1/00000/recipe 5377304 /tmp/test-1/00000/files 2061331 /tmp/test-1/00000/hashes 207958371 /tmp/test-1/00000/chunks 225301178 /tmp/test-1/00000 225301740 /tmp/test-1
2021-09-21store file listing incrementallyn-peugnet
2021-09-21store recipes incrementallyn-peugnet
2021-09-21export asserts into a packagen-peugnet
2021-09-21Use assertSame instead of assertSlicen-peugnet
2021-09-20add test for load hashes and storageWorkern-peugnet
2021-09-20remove errored files from fileListn-peugnet
and add tests with non existing link
2021-09-20store fileList compressedn-peugnet
for now using zlib on a 556Mo dir: files: 1469447 o -> 207289 o size divided by 7
2021-09-15add storeWorker and use it to store chunk content and hashesn-peugnet
2021-09-14add load/store sketches+fingerprints & store themn-peugnet
Fix corresponding Commit tests by adding sketches and fingerprints files in repo_8k and repo_8k_zlib. Also enhance CommitTests by checking recipe files
2021-09-14logger add panic + colors & remove ln variants & use itn-peugnet
2021-09-13fix loadChunks by using cache instead of reading filen-peugnet
This way there is only one place where we read chunks and where the read/write wrapper is used. This also allows to remove LoadedChunk as it is not used anymore.
2021-09-13fix windows test by converting testdata files pathn-peugnet
2021-09-13fix for windows, use filepath instead of pathn-peugnet
2021-09-13fix golint ci errorsn-peugnet
2021-09-13add read write wrappers to compress chunks' contentn-peugnet
2021-09-09better commit and restore tests (almost complete)n-peugnet
added some file path management function for prfixes and trailing slash
2021-09-09first add of restore function to Repon-peugnet
2021-09-09remove merge and extract tempchunksn-peugnet
2021-09-09move unused functions from repo to repo_testn-peugnet
2021-09-09export sketch in its own packagen-peugnet
so that tests can be cached and to make sure it is independant of the rest of the code also move tests in testdata as this folder is ignored by go test by default
2021-09-07prepare for recipe encoding by exporting filedsn-peugnet
2021-09-06initial chunk storagen-peugnet
2021-09-02hash and store chunks left by matchStreamn-peugnet
2021-09-02move maps inside repon-peugnet
2021-09-02find similar chunks while matching streamn-peugnet
2021-09-01move some consts into repon-peugnet
2021-09-01split bsdiff test into smaller functionsn-peugnet
2021-08-31split extractTempChunks into 2 funcsn-peugnet
2021-08-31join too small temp chunks with previous one if possiblen-peugnet
2021-08-31do not fill partial cunks with paddingn-peugnet
this way a partial chunk may have less superfeatures than a complete one
2021-08-30better diff testn-peugnet
2021-08-30findSimilarChunk returns an Id if foundn-peugnet
2021-08-28refactor(chunks): use more interfacesn-peugnet
2021-08-27add findSimilarChunks method to test sketchesn-peugnet
Still missing a real test...
2021-08-26add SketchChunk functionn-peugnet
2021-08-26try to use more streams (part 2)n-peugnet
2021-08-25try to use more streams (part 1)n-peugnet
2021-08-24add extractNewChunksn-peugnet
2021-08-24refactor: extract chunk.og & add Reader gettern-peugnet
2021-08-23try bsdiff and rework some of the APIn-peugnet
2021-08-23add ChunkId that contains version numbern-peugnet
2021-08-22add store and load files listn-peugnet