8#ifndef META_OCEAN_TEST_TESTBASE_TEST_VALUE_H
9#define META_OCEAN_TEST_TESTBASE_TEST_VALUE_H
61 static bool testCopy(
const double testDuration);
68 static bool testMove(
const double testDuration);
94 static bool verifyValue(
const Value&
object,
const T& value);
100 if (!
object.isBool() ||
object.boolValue() != value)
105 if (!
object ||
object.isNull())
116 if (!
object.isInt() ||
object.intValue() != value)
121 if (!
object ||
object.isNull())
132 if (!
object.isInt64() ||
object.int64Value() != value)
137 if (!
object ||
object.isNull())
148 if (!
object.isFloat() ||
object.floatValue() != value)
153 if (!
object ||
object.isNull())
164 if (!
object.isFloat64() ||
object.float64Value() != value)
169 if (!
object ||
object.isNull())
180 if (!
object.isString() ||
object.stringValue() != value)
185 if (!
object ||
object.isNull())
196 if (!
object.isBuffer())
202 const void* data =
object.bufferValue(size);
204 if (size == value.size())
206 if (size >= 1 && memcmp(value.data(), data, size) != 0)
216 if (!
object ||
object.isNull())
227 ocean_assert(
false &&
"Missing implementation!");
This class implements a generator for random numbers.
Definition RandomGenerator.h:42
This class implements a Value test.
Definition TestValue.h:31
static bool testCopy(const double testDuration)
Tests the copy function.
static bool verifyValue(const Value &object, const T &value)
Verifies that the given value object has a specific type and value.
Definition TestValue.h:225
static bool testComparison(const double testDuration)
Tests the comparison operators.
static bool testReadWrite(const double testDuration)
Tests the read/read to/from buffer functions.
static bool testMove(const double testDuration)
Tests the move function.
static Value createRandomValue(RandomGenerator &randomGenerator)
Returns a random valid Value object.
static bool test(const double testDuration, const TestSelector &selector=TestSelector())
Invokes all Value tests.
static bool testConstructor(const double testDuration)
Tests the constructor function.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
This class implements a type independent value.
Definition Value.h:23
The namespace covering the entire Ocean framework.
Definition Accessor.h:15