Cleanup branches and add more unit tests

This commit is contained in:
Antonio SJ Musumeci 2026-03-16 20:02:56 -05:00 • committed by trapexit
parent a30a4df9c0
commit 7f52623536
4 changed files with 970 additions and 15 deletions

View file

@ -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 += ',';