Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ test_token_clone
Function
test_token_clone
atomic-core/src/diff/token/tests.rs:170–175 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
168
169
#[test]
170
fn test_token_clone() {
171
let t1 = Token::new(b
"test"
, TokenKind::Word, 0);
172
let t2 = t1.clone();
173
assert_eq!(t1, t2);
174
assert_eq!(t1.hash_value(), t2.hash_value());
175
}
176
177
// TokenizerConfig tests
178
Callers
nothing calls this directly
Calls
1
clone
Method · 0.45
Tested by
no test coverage detected