| 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 | |
| 83 | bool is_artifact_field(const std::string & key) { |
| 84 | for (const char * field : {"id", "kind", "payload", "path", "meta"}) { |
| 85 | if (key == field) { |
| 86 | return true; |
| 87 | } |
| 88 | } |
| 89 | return false; |
| 90 | } |
| 91 | |
| 92 | engine::runtime::ArtifactKind parse_artifact_kind(const std::string & name, const std::string & where) { |
no test coverage detected