()
| 1104 | |
| 1105 | #[test] |
| 1106 | fn test_tokenize_for_fts() { |
| 1107 | let tokens = tokenize_for_fts("Fix authentication bug in auth.rs"); |
| 1108 | assert!(tokens.contains(&"fix".to_string())); |
| 1109 | assert!(tokens.contains(&"authentication".to_string())); |
| 1110 | assert!(tokens.contains(&"bug".to_string())); |
| 1111 | assert!(tokens.contains(&"auth".to_string())); |
| 1112 | // "rs" and "in" are < 3 chars, filtered out |
| 1113 | assert!(!tokens.contains(&"rs".to_string())); |
| 1114 | assert!(!tokens.contains(&"in".to_string())); |
| 1115 | } |
| 1116 | |
| 1117 | #[test] |
| 1118 | fn test_tokenize_for_fts_filters_short() { |
nothing calls this directly
no test coverage detected