-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: 80% coverage of unixfs/io [WIP] #3097
Conversation
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context" | ||
) | ||
|
||
func getMockDagServ(t testing.TB) mdag.DAGService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would just use merkledag/test.Mock()
for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
maybe some of this testing utility code can be combined into a package and reused across different test suites |
Yeah, I might do that, unfortunately in many cases cyclic imports might be a problem. |
@Kubuxu have an example of a cyclic import issue? |
If we wanted to extract it outside of the unixfs package, otherwise it will be good. |
8fba8c2
to
00a2f0c
Compare
4a3d857
to
ded5cc9
Compare
@Kubuxu is this ready for review? title still has WIP |
It is still WIP, it is at about 70% right now. |
ded5cc9
to
d81fc87
Compare
|
@Kubuxu gotta rebase this one |
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
move tests to different file License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
d81fc87
to
b41f442
Compare
Rebased |
b41f442
to
fabb02f
Compare
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
fabb02f
to
0750c87
Compare
LGTM, thanks! |
License: MIT
Signed-off-by: Jakub Sztandera kubuxu@protonmail.ch