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 support for NextToLast shard function. #11
Conversation
Also fix bug when only the Prefix function was being tested in most cases.
Coverage increased (+0.8%) to 62.776% when pulling 4f600b596294122867eb4fe48e052c078f8055f3 on kevina/next-to-last into 9652294 on master. |
@@ -30,6 +30,11 @@ func tempdir(t testing.TB) (path string, cleanup func()) { | |||
return path, cleanup | |||
} | |||
|
|||
func tryAllShardFuncs(t *testing.T, testFunc func(mkShardFunc, *testing.T)) { | |||
t.Run("prefix", func(t *testing.T) { testFunc(flatfs.Prefix, t) }) | |||
t.Run("suffix", func(t *testing.T) { testFunc(flatfs.Suffix, t) }) |
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.
Should we put the NextToLast
shardfunc here too?
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.
Oops. Thanks for catching this. I tend to interactively commit changes to avoid commiting the rewritten paths and missed 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.
Fixed now.
4f600b5
to
0e6d035
Compare
Coverage increased (+0.8%) to 62.776% when pulling 0e6d035f405dbe45596915af3cabbc3311f6d64b on kevina/next-to-last into 9652294 on master. |
0e6d035
to
d4844ef
Compare
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.
This LGTM, thanks @kevina!
No description provided.