1#ifndef ECL_TEST_MATCHERS_HPP
2#define ECL_TEST_MATCHERS_HPP
24 return "elems read, expected " + std::to_string( this->
expected );
32 return "elems written, expected " + std::to_string( this->
expected );
43 return !(*
this == other);
67 return "Unknown error";
int count
Definition: cJSON.h:212
const char *const string
Definition: cJSON.h:170
Definition: matchers.hpp:9
virtual bool match(const int &count) const override
Definition: matchers.hpp:13
int expected
Definition: matchers.hpp:18
FstreamCount(int ex)
Definition: matchers.hpp:11
@ ECL_OK
Definition: e3/ecl/fortio.h:170
@ ECL_ERR_SEEK
Definition: e3/ecl/fortio.h:172
@ ECL_ERR_READ
Definition: e3/ecl/fortio.h:173
@ ECL_ERR_WRITE
Definition: e3/ecl/fortio.h:174
@ ECL_ERR_UNKNOWN
Definition: e3/ecl/fortio.h:171
@ ECL_EINVAL
Definition: e3/ecl/fortio.h:176
@ ECL_INVALID_RECORD
Definition: e3/ecl/fortio.h:175
Definition: catch.hpp:2277
static std::string convert(const Err &err)
Definition: matchers.hpp:56
Definition: catch.hpp:829
Definition: matchers.hpp:36
static Err invalid_record()
Definition: matchers.hpp:47
bool operator!=(Err other) const
Definition: matchers.hpp:42
static Err read()
Definition: matchers.hpp:48
static Err ok()
Definition: matchers.hpp:46
bool operator==(Err other) const
Definition: matchers.hpp:39
Err(int ex)
Definition: matchers.hpp:37
int expected
Definition: matchers.hpp:50
Definition: matchers.hpp:21
virtual std::string describe() const override
Definition: matchers.hpp:23
Definition: matchers.hpp:28
virtual std::string describe() const override
Definition: matchers.hpp:31