()
| 99 | |
| 100 | #[test] |
| 101 | fn test_create() { |
| 102 | let artifact = vec![1, 2, 3]; |
| 103 | let artifact_id = ARTIFACT_SERVICE.create(artifact.clone()).unwrap(); |
| 104 | let found_artifact = ARTIFACT_SERVICE.find_by_id(&artifact_id).unwrap(); |
| 105 | |
| 106 | assert_eq!(found_artifact.id(), &artifact_id); |
| 107 | assert_eq!(found_artifact.artifact(), &artifact); |
| 108 | } |
| 109 | |
| 110 | #[test] |
| 111 | fn test_create_same_resolves_to_same_id() { |
nothing calls this directly
no test coverage detected