[ox] Remove OxError
This commit is contained in:
14
deps/ox/src/ox/claw/test/tests.cpp
vendored
14
deps/ox/src/ox/claw/test/tests.cpp
vendored
@ -66,7 +66,7 @@ constexpr ox::Error model(T *io, ox::CommonPtrWith<TestUnion> auto *obj) {
|
||||
oxReturnError(io->field("Bool", &obj->Bool));
|
||||
oxReturnError(io->field("Int", &obj->Int));
|
||||
oxReturnError(io->fieldCString("String", &obj->String));
|
||||
return OxError(0);
|
||||
return ox::Error(0);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
@ -75,7 +75,7 @@ constexpr ox::Error model(T *io, ox::CommonPtrWith<TestStructNest> auto *obj) {
|
||||
oxReturnError(io->field("Bool", &obj->Bool));
|
||||
oxReturnError(io->field("Int", &obj->Int));
|
||||
oxReturnError(io->field("String", &obj->String));
|
||||
return OxError(0);
|
||||
return ox::Error(0);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
@ -100,7 +100,7 @@ constexpr ox::Error model(T *io, ox::CommonPtrWith<TestStruct> auto *obj) {
|
||||
oxReturnError(io->field("List", obj->List, 4));
|
||||
oxReturnError(io->field("EmptyStruct", &obj->EmptyStruct));
|
||||
oxReturnError(io->field("Struct", &obj->Struct));
|
||||
return OxError(0);
|
||||
return ox::Error(0);
|
||||
}
|
||||
|
||||
static std::map<ox::StringView, ox::Error(*)()> tests = {
|
||||
@ -114,7 +114,7 @@ static std::map<ox::StringView, ox::Error(*)()> tests = {
|
||||
oxAssert(ch.fmt == ox::ClawFormat::Organic, "Format wrong");
|
||||
oxAssert(ch.typeName == "com.drinkingtea.ox.claw.test.Header", "Type name wrong");
|
||||
oxAssert(ch.typeVersion == 2, "Type version wrong");
|
||||
return OxError(0);
|
||||
return ox::Error(0);
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -126,7 +126,7 @@ static std::map<ox::StringView, ox::Error(*)()> tests = {
|
||||
oxAssert(ch.fmt == ox::ClawFormat::Metal, "Format wrong");
|
||||
oxAssert(ch.typeName == "com.drinkingtea.ox.claw.test.Header2", "Type name wrong");
|
||||
oxAssert(ch.typeVersion == 3, "Type version wrong");
|
||||
return OxError(0);
|
||||
return ox::Error(0);
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -146,7 +146,7 @@ static std::map<ox::StringView, ox::Error(*)()> tests = {
|
||||
// doesn't segfault
|
||||
TestStruct ts;
|
||||
oxReturnError(ox::writeClaw(ts, ox::ClawFormat::Metal));
|
||||
return OxError(0);
|
||||
return ox::Error(0);
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -191,7 +191,7 @@ static std::map<ox::StringView, ox::Error(*)()> tests = {
|
||||
oxAssert(testIn.Struct.String == testOut.Struct.String, "Struct.String value mismatch");
|
||||
oxAssert(testIn.Struct.Bool == testOut.Struct.Bool, "Struct.Bool value mismatch");
|
||||
|
||||
return OxError(0);
|
||||
return ox::Error(0);
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user