32 EXPECT_EQ(tag.
name(), std::string());
33 EXPECT_EQ(tag.
min(), 0);
34 EXPECT_EQ(tag.
max(), -1);
46 EXPECT_EQ(tag.
name(), std::string(
"name"));
47 EXPECT_EQ(tag.
min(), 0);
48 EXPECT_EQ(tag.
max(), -1);
61 EXPECT_EQ(tag.
name(), std::string(
"name"));
62 EXPECT_EQ(tag.
min(), 1);
63 EXPECT_EQ(tag.
max(), 1);
75 EXPECT_TRUE(tag1 == tag2);
76 EXPECT_FALSE(tag1 != tag2);
81 EXPECT_TRUE(tag3 == tag4);
82 EXPECT_FALSE(tag3 != tag4);
87 EXPECT_TRUE(tag5 == tag6);
88 EXPECT_FALSE(tag5 != tag6);
91 TagInfo tag7(
"tag7", 0, 1, std::vector<std::string>());
92 TagInfo tag8(
"tag8", 0, 1, std::vector<std::string>());
93 EXPECT_FALSE(tag7 == tag8);
94 EXPECT_TRUE(tag7 != tag8);
Holds info about single tag for SessionItem.
bool isValidChild(const std::string &modelType) const
Returns true if given modelType matches the list of possible model types.
bool isSinglePropertyTag() const
Returns true if this tag is used to store single properties.
static TagInfo universalTag(std::string name, std::vector< std::string > modelTypes={})
Constructs universal tag intended for unlimited amount of various items.
static TagInfo propertyTag(std::string name, std::string model_type)
Constructs tag intended for single property.
materialitems.h Collection of materials to populate MaterialModel.
TEST_F(TagInfoTest, initialState)