mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-05 06:26:30 +01:00
feat(catalog): index the komorebi source in this repository, not a checkout of each komorebi
The recorder is a member of the repository it indexes: each flavor is built from the directory of its own daemon (komorebi-macos, komorebi-windows, komorebi-linux) and the shared crates that log. The statements of the container, workspace and monitor moved into komorebi-core, so the targets of the real log sample in the fixture are komorebi_core's. KOMOREBI_SRC and KOMOREBI_COMMIT replace the three KOMOREBI_*_SRC variables, for a build that is not in a checkout.
This commit is contained in:
1 parent
9854f90db7
commit
170a6f51c0
9 files changed
+151
-120
No files matched your search
@@ -292,13 +292,13 @@ impl Analysis {
|
||||
///
|
||||
/// let (session, _) = SessionBuilder::new("doc-code-search").build();
|
||||
/// let analysis = Analysis::open(&session.dir)?;
|
||||
/// # if analysis.catalog().is_empty() { return Ok(()); } // built without KOMOREBI_MAC_SRC
|
||||
/// # if analysis.catalog().is_empty() { return Ok(()); } // built without the source
|
||||
///
|
||||
/// let found = analysis.code_search("Reaping WINDOW");
|
||||
/// assert_eq!(found.about, "grep Reaping WINDOW");
|
||||
/// assert!(found.lines.is_empty());
|
||||
/// assert!(!found.statements.is_empty());
|
||||
/// assert!(found.statements.iter().any(|statement| statement.file == "komorebi/src/reaper.rs"));
|
||||
/// assert!(found.statements.iter().any(|statement| statement.file == "komorebi-macos/src/reaper.rs"));
|
||||
/// # Ok::<(), Box<dyn std::error::Error>>(())
|
||||
/// ```
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user