Commit dc69cc45 authored by Victor Zverovich's avatar Victor Zverovich

Clean tests

parent 9d8021f0
...@@ -397,8 +397,7 @@ TEST(ArgTest, CustomArg) { ...@@ -397,8 +397,7 @@ TEST(ArgTest, CustomArg) {
} }
TEST(ArgTest, VisitInvalidArg) { TEST(ArgTest, VisitInvalidArg) {
typedef mock_visitor<fmt::monostate> Visitor; testing::StrictMock< mock_visitor<fmt::monostate> > visitor;
testing::StrictMock<Visitor> visitor;
EXPECT_CALL(visitor, visit(_)); EXPECT_CALL(visitor, visit(_));
fmt::basic_format_arg<fmt::format_context> arg; fmt::basic_format_arg<fmt::format_context> arg;
visit(visitor, arg); visit(visitor, arg);
...@@ -446,7 +445,7 @@ TEST(CoreTest, ConvertToInt) { ...@@ -446,7 +445,7 @@ TEST(CoreTest, ConvertToInt) {
EXPECT_TRUE((fmt::convert_to_int<basic_enum, char>::value)); EXPECT_TRUE((fmt::convert_to_int<basic_enum, char>::value));
} }
enum enum_with_underlying_type : char {TestValue}; enum enum_with_underlying_type : char {};
TEST(CoreTest, IsEnumConvertibleToInt) { TEST(CoreTest, IsEnumConvertibleToInt) {
EXPECT_TRUE((fmt::convert_to_int<enum_with_underlying_type, char>::value)); EXPECT_TRUE((fmt::convert_to_int<enum_with_underlying_type, char>::value));
......
// A folly::StringPiece stub.
#include <cstring>
namespace folly {
class StringPiece {
public:
explicit StringPiece(const char *s) : data_(s), size_(std::strlen(s)) {}
const char* data() const { return "foo"; }
size_t size() const { return 3; }
private:
const char *data_;
size_t size_;
};
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment