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

Function test_binary_file

atomic-core/src/change/graph_op.rs:1236–1246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1234
1235 #[test]
1236 fn test_binary_file() {
1237 let graph_op: GraphOp<Hash> = GraphOp::FileAdd {
1238 add_name: test_new_vertex(),
1239 add_inode: test_new_vertex(),
1240 contents: Some(test_new_vertex()),
1241 path: "image.png".to_string(),
1242 encoding: Some(Encoding::Binary),
1243 };
1244
1245 assert_eq!(graph_op.encoding(), Some(Encoding::Binary));
1246 }
1247
1248 #[test]
1249 fn test_all_hunk_types_have_type_name() {

Callers

nothing calls this directly

Calls 1

test_new_vertexFunction · 0.70

Tested by

no test coverage detected