MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / node

Function node

libatomic/tests/change_intent_context_test.rs:32–52  ·  view source on GitHub ↗
(
    id: &str,
    kind: ProvenanceNodeKind,
    detail: Option<String>,
    hash: Option<Hash>,
)

Source from the content-addressed store, hash-verified

30 .unwrap()
31}
32fn node(
33 id: &str,
34 kind: ProvenanceNodeKind,
35 detail: Option<String>,
36 hash: Option<Hash>,
37) -> ProvenanceNode {
38 ProvenanceNode {
39 id: id.into(),
40 kind,
41 timestamp: 1,
42 summary: id.into(),
43 detail,
44 change_hash: hash,
45 tool_name: None,
46 tool_call_id: None,
47 duration_ms: None,
48 classified: false,
49 confidence: None,
50 consolidated_from: vec![],
51 }
52}
53async fn get(root: &std::path::Path, hash: Hash, metadata: bool) -> proto::GetChangeResponse {
54 let service = LocalService::new();
55 let resolved = service

Calls

no outgoing calls

Tested by

no test coverage detected