ipfs / go-ipld-format

IPLD Node and Resolver interfaces in Go
https://github.com/ipld/ipld
MIT License
64 stars 26 forks source link

Create mock infrastructure for implementation testing #37

Open magik6k opened 6 years ago

magik6k commented 6 years ago

It would be amazing to be able to have a test utility cobbling blockstore/resolver/... together for the purpose of testing ipld modules.

For git a test would add a git repo objects to that and test all the things that are currently rather hard to do, like path traversal / resolving.

Stebalien commented 6 years ago

I tend to write interface tests like this by: