Nomad changes
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s

This commit is contained in:
Henrik Jess Nielsen
2026-06-01 23:40:55 +02:00
parent 72b1a0a6ed
commit b4c07d3693
5723 changed files with 1130655 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// Tests that the no-feature stubs compile and return empty/None.
// Only active when `embedding-presets` is absent; run with:
// cargo test -p kreuzberg --test embedding_preset_stubs --no-default-features
#[cfg(not(feature = "embedding-presets"))]
mod tests {
#[test]
fn get_returns_none_without_feature() {
assert!(kreuzberg::get_embedding_preset("all-minilm-l6-v2").is_none());
}
#[test]
fn list_returns_empty_without_feature() {
assert!(kreuzberg::list_embedding_presets().is_empty());
}
}