Skip to content
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

Add UT cases to pkg/cubefs #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kaichiachen
Copy link

@kaichiachen kaichiachen commented Jan 13, 2025

There are no unit test cases in pkg/cubefs so I add some - from 0% to 21.7% coverage

#> go test -cover ./...

        github.com/cubefs/cubefs-csi/cmd                coverage: 0.0% of statements
ok      github.com/cubefs/cubefs-csi/pkg/csi-common     (cached)        coverage: 28.4% of statements
ok      github.com/cubefs/cubefs-csi/pkg/cubefs 2.127s  coverage: 21.7% of statements

I introduced a new go library to do patch - bou.ke/monkey It can facilitate function/method patch like other interpreter language(i.e. python)

Signed-off-by: kaichiachen <[email protected]>
Signed-off-by: kaichiachen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant