mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 00:39:31 +08:00
add tests for ipfs files stat --with-local
License: MIT Signed-off-by: Michael Muré <batolettre@gmail.com>
This commit is contained in:
@ -154,6 +154,15 @@ test_files_api() {
|
||||
ipfs files stat --hash / > roothash
|
||||
'
|
||||
|
||||
test_expect_success "stat works outside of MFS" '
|
||||
ipfs files stat /ipfs/$DIR1
|
||||
'
|
||||
|
||||
test_expect_success "stat compute the locality of a dag" '
|
||||
ipfs files stat --with-local /ipfs/$DIR1 > output
|
||||
grep -q "(100.00%)" output
|
||||
'
|
||||
|
||||
test_expect_success "cannot mkdir / $EXTRA" '
|
||||
test_expect_code 1 ipfs files mkdir $ARGS /
|
||||
'
|
||||
|
Reference in New Issue
Block a user