diff --git a/cmd/desync/info_test.go b/cmd/desync/info_test.go index 17960bb..79ab0f1 100644 --- a/cmd/desync/info_test.go +++ b/cmd/desync/info_test.go @@ -10,6 +10,7 @@ import ( "github.com/stretchr/testify/require" ) + func TestInfoCommand(t *testing.T) { for _, test := range []struct { name string @@ -55,11 +56,11 @@ func TestInfoCommand(t *testing.T) { "unique": 131, "in-store": 131, "in-seed": 124, - "in-cache": 18, - "not-in-seed-nor-cache": 5, + "in-cache": 25, + "not-in-seed-nor-cache": 7, "size": 2097152, "dedup-size-not-in-seed": 80029, - "dedup-size-not-in-seed-nor-cache": 67099, + "dedup-size-not-in-seed-nor-cache": 80029, "chunk-size-min": 2048, "chunk-size-avg": 8192, "chunk-size-max": 32768 @@ -71,11 +72,11 @@ func TestInfoCommand(t *testing.T) { "unique": 131, "in-store": 131, "in-seed": 0, - "in-cache": 18, - "not-in-seed-nor-cache": 113, + "in-cache": 25, + "not-in-seed-nor-cache": 106, "size": 2097152, "dedup-size-not-in-seed": 1114112, - "dedup-size-not-in-seed-nor-cache": 950410, + "dedup-size-not-in-seed-nor-cache": 853943, "chunk-size-min": 2048, "chunk-size-avg": 8192, "chunk-size-max": 32768 diff --git a/cmd/desync/testdata/blob2.cache/0d44/0d44b9fa2e55177e14e7cd1badad5c8e39d2f51027c9358cf2b08ac2d3163942.cacnk b/cmd/desync/testdata/blob2.cache/0d44/0d44b9fa2e55177e14e7cd1badad5c8e39d2f51027c9358cf2b08ac2d3163942.cacnk new file mode 100644 index 0000000..4230cfb Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/0d44/0d44b9fa2e55177e14e7cd1badad5c8e39d2f51027c9358cf2b08ac2d3163942.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/1e00/1e0000e37470d0dd91e99870d55a73b7da77b106e35cbc7be9d984256117b752.cacnk b/cmd/desync/testdata/blob2.cache/1e00/1e0000e37470d0dd91e99870d55a73b7da77b106e35cbc7be9d984256117b752.cacnk new file mode 100644 index 0000000..1d7f55d Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/1e00/1e0000e37470d0dd91e99870d55a73b7da77b106e35cbc7be9d984256117b752.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/1ea4/1ea441aee6d76c8e6883238331c325d7023e640f03d4e3d15b3ddb5145cf403a.cacnk b/cmd/desync/testdata/blob2.cache/1ea4/1ea441aee6d76c8e6883238331c325d7023e640f03d4e3d15b3ddb5145cf403a.cacnk new file mode 100644 index 0000000..b6d15e8 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/1ea4/1ea441aee6d76c8e6883238331c325d7023e640f03d4e3d15b3ddb5145cf403a.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/1f59/1f592a09dcc63a0bead5787876afbbaef734235e5025ce17c91d1b0180d687d5.cacnk b/cmd/desync/testdata/blob2.cache/1f59/1f592a09dcc63a0bead5787876afbbaef734235e5025ce17c91d1b0180d687d5.cacnk new file mode 100644 index 0000000..a2e3b8a Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/1f59/1f592a09dcc63a0bead5787876afbbaef734235e5025ce17c91d1b0180d687d5.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/2c7e/2c7ef388e76dd322fff557f2b3411969ecbb84e1647670d2b1875d0aa2dbb57a.cacnk b/cmd/desync/testdata/blob2.cache/2c7e/2c7ef388e76dd322fff557f2b3411969ecbb84e1647670d2b1875d0aa2dbb57a.cacnk new file mode 100644 index 0000000..89ea212 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/2c7e/2c7ef388e76dd322fff557f2b3411969ecbb84e1647670d2b1875d0aa2dbb57a.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/2f00/2f00447fdec253959286341965cdb408ebb584968c1df40aff832815b871500a.cacnk b/cmd/desync/testdata/blob2.cache/2f00/2f00447fdec253959286341965cdb408ebb584968c1df40aff832815b871500a.cacnk new file mode 100644 index 0000000..71a026f Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/2f00/2f00447fdec253959286341965cdb408ebb584968c1df40aff832815b871500a.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/2fd7/2fd7fa2bf16ae9e0a980a464f00c946eeecf663e8f986f9f4a0e26e69f545edb.cacnk b/cmd/desync/testdata/blob2.cache/2fd7/2fd7fa2bf16ae9e0a980a464f00c946eeecf663e8f986f9f4a0e26e69f545edb.cacnk new file mode 100644 index 0000000..ce10b64 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/2fd7/2fd7fa2bf16ae9e0a980a464f00c946eeecf663e8f986f9f4a0e26e69f545edb.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/3a1e/3a1e0c3ce74489ca872f4c197cc8837561403f361e62ba080dfdc232cc1a9f44.cacnk b/cmd/desync/testdata/blob2.cache/3a1e/3a1e0c3ce74489ca872f4c197cc8837561403f361e62ba080dfdc232cc1a9f44.cacnk new file mode 100644 index 0000000..9b9e51e Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/3a1e/3a1e0c3ce74489ca872f4c197cc8837561403f361e62ba080dfdc232cc1a9f44.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/3b96/3b96dda633ff88025ad87d4d32c5e0a4bd688f50810c877fbdf5a64159a23492.cacnk b/cmd/desync/testdata/blob2.cache/3b96/3b96dda633ff88025ad87d4d32c5e0a4bd688f50810c877fbdf5a64159a23492.cacnk new file mode 100644 index 0000000..72cd641 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/3b96/3b96dda633ff88025ad87d4d32c5e0a4bd688f50810c877fbdf5a64159a23492.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/3bd3/3bd38e17912b4dc1b58e730e02d26b52ce61c2dd6d608215b9984241a37c5632.cacnk b/cmd/desync/testdata/blob2.cache/3bd3/3bd38e17912b4dc1b58e730e02d26b52ce61c2dd6d608215b9984241a37c5632.cacnk new file mode 100644 index 0000000..9928bfc Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/3bd3/3bd38e17912b4dc1b58e730e02d26b52ce61c2dd6d608215b9984241a37c5632.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/3bd5/3bd5965865d888bb32744678ed2e50eaed96f36c615b0c8cc052a8aeeeea7647.cacnk b/cmd/desync/testdata/blob2.cache/3bd5/3bd5965865d888bb32744678ed2e50eaed96f36c615b0c8cc052a8aeeeea7647.cacnk new file mode 100644 index 0000000..52e6d20 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/3bd5/3bd5965865d888bb32744678ed2e50eaed96f36c615b0c8cc052a8aeeeea7647.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/3c1a/3c1a2f81236e8e396a7cbbb7e608f4f91f6ec0a1043558733a56354b3e843447.cacnk b/cmd/desync/testdata/blob2.cache/3c1a/3c1a2f81236e8e396a7cbbb7e608f4f91f6ec0a1043558733a56354b3e843447.cacnk new file mode 100644 index 0000000..4d690d2 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/3c1a/3c1a2f81236e8e396a7cbbb7e608f4f91f6ec0a1043558733a56354b3e843447.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/3d14/3d14b34541510c93ab1117665dfcf47961a8b47270695f2c1cf4096340b69d38.cacnk b/cmd/desync/testdata/blob2.cache/3d14/3d14b34541510c93ab1117665dfcf47961a8b47270695f2c1cf4096340b69d38.cacnk new file mode 100644 index 0000000..96d1119 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/3d14/3d14b34541510c93ab1117665dfcf47961a8b47270695f2c1cf4096340b69d38.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/3d22/3d22c99f10f78c4464254a4a644009aec8b9a6298b1b25b141d404506911a7d8.cacnk b/cmd/desync/testdata/blob2.cache/3d22/3d22c99f10f78c4464254a4a644009aec8b9a6298b1b25b141d404506911a7d8.cacnk new file mode 100644 index 0000000..5944d30 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/3d22/3d22c99f10f78c4464254a4a644009aec8b9a6298b1b25b141d404506911a7d8.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/3e74/3e743f498c346ba239148821fd01e826ea89a619856ec969663dbb6228de2401.cacnk b/cmd/desync/testdata/blob2.cache/3e74/3e743f498c346ba239148821fd01e826ea89a619856ec969663dbb6228de2401.cacnk new file mode 100644 index 0000000..9e86d7c Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/3e74/3e743f498c346ba239148821fd01e826ea89a619856ec969663dbb6228de2401.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/3f85/3f85dbefac8e408f8cf4b1113e75283e0bed9bcade97e2b58d8716dc9c16c00a.cacnk b/cmd/desync/testdata/blob2.cache/3f85/3f85dbefac8e408f8cf4b1113e75283e0bed9bcade97e2b58d8716dc9c16c00a.cacnk new file mode 100644 index 0000000..3890e04 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/3f85/3f85dbefac8e408f8cf4b1113e75283e0bed9bcade97e2b58d8716dc9c16c00a.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/3fba/3fba59861aa7ea797285b88c0bb3dd4676276bd29d8e471cab834f32117d8b47.cacnk b/cmd/desync/testdata/blob2.cache/3fba/3fba59861aa7ea797285b88c0bb3dd4676276bd29d8e471cab834f32117d8b47.cacnk new file mode 100644 index 0000000..5792d96 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/3fba/3fba59861aa7ea797285b88c0bb3dd4676276bd29d8e471cab834f32117d8b47.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/4a2e/4a2e9f8b881068295cf539094c25cf609165c717d6bff95a38159ec2082af8b8.cacnk b/cmd/desync/testdata/blob2.cache/4a2e/4a2e9f8b881068295cf539094c25cf609165c717d6bff95a38159ec2082af8b8.cacnk new file mode 100644 index 0000000..f8f9f73 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/4a2e/4a2e9f8b881068295cf539094c25cf609165c717d6bff95a38159ec2082af8b8.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/4a4e/4a4ebf42f9ff30957240f940a6edf4e384625d1aca283ac0830d9860a0c6f1a9.cacnk b/cmd/desync/testdata/blob2.cache/4a4e/4a4ebf42f9ff30957240f940a6edf4e384625d1aca283ac0830d9860a0c6f1a9.cacnk new file mode 100644 index 0000000..b5d2d9e Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/4a4e/4a4ebf42f9ff30957240f940a6edf4e384625d1aca283ac0830d9860a0c6f1a9.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/4b19/4b195544c4087551b3bbe6431cbd39a651e5838be81a64b4a72568c367158f8b.cacnk b/cmd/desync/testdata/blob2.cache/4b19/4b195544c4087551b3bbe6431cbd39a651e5838be81a64b4a72568c367158f8b.cacnk new file mode 100644 index 0000000..8b5c7b4 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/4b19/4b195544c4087551b3bbe6431cbd39a651e5838be81a64b4a72568c367158f8b.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/4b9e/4b9ec671c0f38fc5c98d240ea17fdab8f45f8c6c0b038295ab2282c2426ca41c.cacnk b/cmd/desync/testdata/blob2.cache/4b9e/4b9ec671c0f38fc5c98d240ea17fdab8f45f8c6c0b038295ab2282c2426ca41c.cacnk new file mode 100644 index 0000000..857516d Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/4b9e/4b9ec671c0f38fc5c98d240ea17fdab8f45f8c6c0b038295ab2282c2426ca41c.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/4bea/4beab041e270eea4c63003058f22fa326dd3df80b85fe937571ed5383b2677bd.cacnk b/cmd/desync/testdata/blob2.cache/4bea/4beab041e270eea4c63003058f22fa326dd3df80b85fe937571ed5383b2677bd.cacnk new file mode 100644 index 0000000..c4c0fde Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/4bea/4beab041e270eea4c63003058f22fa326dd3df80b85fe937571ed5383b2677bd.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/4c15/4c15e039cf1bb4b65c38c817a44f7098774629d7963c722c9afc56fdfded1516.cacnk b/cmd/desync/testdata/blob2.cache/4c15/4c15e039cf1bb4b65c38c817a44f7098774629d7963c722c9afc56fdfded1516.cacnk new file mode 100644 index 0000000..3e35fb0 Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/4c15/4c15e039cf1bb4b65c38c817a44f7098774629d7963c722c9afc56fdfded1516.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/4c66/4c6640dd18eb6b9fbcd3d44b5132748b8fc04f1f60bb9771d77e8352f9df535e.cacnk b/cmd/desync/testdata/blob2.cache/4c66/4c6640dd18eb6b9fbcd3d44b5132748b8fc04f1f60bb9771d77e8352f9df535e.cacnk new file mode 100644 index 0000000..0ae2baf Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/4c66/4c6640dd18eb6b9fbcd3d44b5132748b8fc04f1f60bb9771d77e8352f9df535e.cacnk differ diff --git a/cmd/desync/testdata/blob2.cache/4d38/4d381c664f29a74e27cb736b4ebcc6f3c2e415816d7899ca91324bfab478df96.cacnk b/cmd/desync/testdata/blob2.cache/4d38/4d381c664f29a74e27cb736b4ebcc6f3c2e415816d7899ca91324bfab478df96.cacnk new file mode 100644 index 0000000..636f64f Binary files /dev/null and b/cmd/desync/testdata/blob2.cache/4d38/4d381c664f29a74e27cb736b4ebcc6f3c2e415816d7899ca91324bfab478df96.cacnk differ