MCPcopy Create free account
hub / github.com/hashintel/hash / edition_provenance

Function edition_provenance

tests/graph/integration/postgres/property_metadata.rs:124–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124fn edition_provenance() -> ProvidedEntityEditionProvenance {
125 serde_json::from_value(json!({
126 "origin": {
127 "type": "web-app",
128 "id": "HASH",
129 },
130 "actorType": "user",
131 "sources": [
132 {
133 "type": "webpage",
134 "authors": ["Charles"],
135 "location": {
136 "name": "Charles' blog",
137 "uri": "https://charles.com",
138 "description": "Charles' blog"
139 }
140 }
141 ]
142 }))
143 .expect("could not parse provenance")
144}
145
146fn alice() -> PropertyObject {
147 serde_json::from_str(entity::PERSON_ALICE_V1).expect("could not parse entity")

Callers 2

initial_metadataFunction · 0.85
no_initial_metadataFunction · 0.85

Calls 1

expectMethod · 0.45

Tested by

no test coverage detected