()
| 1389 | |
| 1390 | #[test] |
| 1391 | fn test_tokenize_for_fts() { |
| 1392 | let tokens = tokenize_for_fts("Fix authentication bug in auth.rs"); |
| 1393 | assert!(tokens.contains(&"fix".to_string())); |
| 1394 | assert!(tokens.contains(&"authentication".to_string())); |
| 1395 | assert!(tokens.contains(&"bug".to_string())); |
| 1396 | assert!(tokens.contains(&"auth".to_string())); |
| 1397 | // "rs" and "in" are < 3 chars, filtered out |
| 1398 | assert!(!tokens.contains(&"rs".to_string())); |
| 1399 | assert!(!tokens.contains(&"in".to_string())); |
| 1400 | } |
| 1401 | |
| 1402 | #[test] |
| 1403 | fn test_tokenize_for_fts_filters_short() { |
nothing calls this directly
no test coverage detected