mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Cleanup branches and add more unit tests
This commit is contained in:
parent
a30a4df9c0
commit
7f52623536
4 changed files with 970 additions and 15 deletions
|
|
@ -17,11 +17,10 @@
|
|||
*/
|
||||
|
||||
#include "branch.hpp"
|
||||
#include "ef.hpp"
|
||||
#include "errno.hpp"
|
||||
#include "num.hpp"
|
||||
|
||||
Branch::Branch()
|
||||
: mode(Branch::Mode::RW)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -37,12 +36,6 @@ Branch::Branch(const u64 &default_minfreespace_)
|
|||
{
|
||||
}
|
||||
|
||||
int
|
||||
Branch::from_string(const std::string_view str_)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
std::string
|
||||
Branch::to_string(void) const
|
||||
{
|
||||
|
|
@ -64,7 +57,6 @@ Branch::to_string(void) const
|
|||
break;
|
||||
}
|
||||
|
||||
|
||||
if(std::holds_alternative<u64>(_minfreespace))
|
||||
{
|
||||
rv += ',';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue