const spv_position_t& position, const char* message) {
++invocation;
EXPECT_EQ(spvtools::MessageLevel::Error, level);
- EXPECT_STREQ("", source);
+ EXPECT_STREQ("input", source);
EXPECT_EQ(0u, position.line);
EXPECT_EQ(0u, position.column);
EXPECT_EQ(5u, position.index);
++invocation;
EXPECT_EQ(MessageLevel::Error, level);
// The error happens at scanning the begining of second line.
- EXPECT_STREQ("", source);
+ EXPECT_STREQ("input", source);
EXPECT_EQ(1u, position.line);
EXPECT_EQ(0u, position.column);
EXPECT_EQ(12u, position.index);
const spv_position_t& position, const char* message) {
++invocation;
EXPECT_EQ(MessageLevel::Error, level);
- EXPECT_STREQ("", source);
+ EXPECT_STREQ("input", source);
EXPECT_EQ(0u, position.line);
EXPECT_EQ(0u, position.column);
EXPECT_EQ(5u, position.index);
const spv_position_t& position, const char* message) {
++invocation;
EXPECT_EQ(MessageLevel::Error, level);
- EXPECT_STREQ("", source);
+ EXPECT_STREQ("input", source);
EXPECT_EQ(0u, position.line);
EXPECT_EQ(0u, position.column);
// TODO(antiagainst): what validation reports is not a word offset here.
t.SetMessageConsumer([](MessageLevel level, const char* source,
const spv_position_t& position, const char* message) {
EXPECT_EQ(MessageLevel::Error, level);
- EXPECT_STREQ("", source);
+ EXPECT_STREQ("input", source);
EXPECT_EQ(0u, position.line);
EXPECT_EQ(0u, position.column);
EXPECT_EQ(1u, position.index);
const spv_position_t& position, const char* message) {
++invocation_count;
EXPECT_EQ(MessageLevel::Error, level);
- EXPECT_STREQ("", source);
+ EXPECT_STREQ("input", source);
EXPECT_EQ(0u, position.line);
EXPECT_EQ(5u, position.column);
EXPECT_EQ(5u, position.index);
const spv_position_t& position, const char* message) {
++invocation_count;
EXPECT_EQ(MessageLevel::Error, level);
- EXPECT_STREQ("", source);
+ EXPECT_STREQ("input", source);
EXPECT_EQ(0u, position.line);
EXPECT_EQ(0u, position.column);
EXPECT_EQ(0u, position.index);
const spv_position_t& position, const char* message) {
++invocation_count;
EXPECT_EQ(MessageLevel::Error, level);
- EXPECT_STREQ("", source);
+ EXPECT_STREQ("input", source);
EXPECT_EQ(0u, position.line);
EXPECT_EQ(0u, position.column);
EXPECT_EQ(5u, position.index);
const spv_position_t& position, const char* message) {
++invocation_count;
EXPECT_EQ(MessageLevel::Error, level);
- EXPECT_STREQ("", source);
+ EXPECT_STREQ("input", source);
EXPECT_EQ(0u, position.line);
EXPECT_EQ(0u, position.column);
EXPECT_EQ(0u, position.index);