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

Function test_token_empty

atomic-core/src/diff/token/tests.rs:93–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92 #[test]
93 fn test_token_empty() {
94 let token = Token::new(b"", TokenKind::Other, 0);
95 assert!(token.is_empty());
96 assert_eq!(token.len(), 0);
97 assert_eq!(token.end_offset(), 0);
98 }
99
100 #[test]
101 fn test_token_hash_value() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected