| 25 | static_assert(Enchantment::Protection == "minecraft:protection"); |
| 26 | |
| 27 | TEST(IdentifierTest, ParsesWithExplicitNamespace) |
| 28 | { |
| 29 | constexpr auto id = ItemTypeId{"endstone:custom"}; |
| 30 | EXPECT_EQ(id.getNamespace(), "endstone"); |
| 31 | EXPECT_EQ(id.getKey(), "custom"); |
| 32 | EXPECT_TRUE(id == "endstone:custom"); |
| 33 | EXPECT_FALSE(id != "endstone:custom"); |
| 34 | } |
| 35 | |
| 36 | TEST(IdentifierTest, DefaultsToMinecraftNamespace) |
| 37 | { |
nothing calls this directly
no test coverage detected