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

Function test_token_kind_is_content

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

Source from the content-addressed store, hash-verified

24
25 #[test]
26 fn test_token_kind_is_content() {
27 assert!(TokenKind::Word.is_content());
28 assert!(TokenKind::String.is_content());
29 assert!(TokenKind::Number.is_content());
30 assert!(TokenKind::Comment.is_content());
31 assert!(!TokenKind::Operator.is_content());
32 assert!(!TokenKind::Punctuation.is_content());
33 assert!(!TokenKind::Whitespace.is_content());
34 assert!(!TokenKind::Newline.is_content());
35 assert!(!TokenKind::Other.is_content());
36 }
37
38 #[test]
39 fn test_token_kind_is_whitespace() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected