| 69 | if (kArtifactKinds[index].kind != static_cast<engine::runtime::ArtifactKind>(index)) { |
| 70 | return false; |
| 71 | } |
| 72 | } |
| 73 | return true; |
| 74 | } |
| 75 | |
| 76 | // Custom is the last ArtifactKind, so a kind added to the enum without a name |
| 77 | // here fails to build instead of being turned away as unknown. |
| 78 | static_assert( |
| 79 | std::size(kArtifactKinds) == static_cast<size_t>(engine::runtime::ArtifactKind::Custom) + 1 && |
| 80 | artifact_kinds_in_enum_order(), |
| 81 | "kArtifactKinds must name every ArtifactKind, in enum order"); |
| 82 |
no test coverage detected