Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/cli/batch/handlers/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ mod parity_tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/cli/batch/handlers/dispatch_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ fn make_chunk(
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down Expand Up @@ -547,6 +548,7 @@ fn make_chunk_lang(id: &str, file: &str, name: &str, lang: Language) -> Chunk {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/cli/batch/handlers/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down Expand Up @@ -1851,6 +1852,7 @@ mod tests {
window_idx: None,
parent_type_name: parent.map(String::from),
parser_version: 0,
is_test: false,
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/cli/batch/handlers/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down Expand Up @@ -536,6 +537,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down
1 change: 1 addition & 0 deletions src/cli/batch/handlers/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down
1 change: 1 addition & 0 deletions src/cli/batch/json_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down
1 change: 1 addition & 0 deletions src/cli/commands/graph/callers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1717,6 +1717,7 @@ mod tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/cli/commands/graph/deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ mod tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
}
}
Expand Down Expand Up @@ -637,6 +638,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
};
store
.upsert_chunks_batch(&[(chunk, mock_embedding)], Some(100))
Expand Down Expand Up @@ -716,6 +718,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
};
s.upsert_chunks_batch(&[(chunk, embedding.clone())], Some(0))?;
}
Expand Down
2 changes: 2 additions & 0 deletions src/cli/commands/graph/explain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ mod output_tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
}
}
Expand Down Expand Up @@ -1020,6 +1021,7 @@ mod output_tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/cli/commands/graph/impact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ mod tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
}
}
Expand Down Expand Up @@ -905,6 +906,7 @@ mod tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
}
}
Expand Down
1 change: 1 addition & 0 deletions src/cli/commands/graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ mod tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored,
}
}
Expand Down
1 change: 1 addition & 0 deletions src/cli/commands/graph/test_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ mod output_tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/cli/commands/graph/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ mod tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
}
}
Expand Down Expand Up @@ -1056,6 +1057,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
};
store
.upsert_chunks_batch(&[(chunk, mock_embedding)], Some(100))
Expand Down
1 change: 1 addition & 0 deletions src/cli/commands/index/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
};
// Distinct unit-ish vectors per chunk so the HNSW builder has
// something non-degenerate to insert.
Expand Down
1 change: 1 addition & 0 deletions src/cli/commands/index/umap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
};
// Pad/truncate the synthetic embedding to the store dim so the
// wire bytes match what `embedding_batches` expects.
Expand Down
2 changes: 2 additions & 0 deletions src/cli/commands/io/blame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ mod tests {
content_hash: String::new(),
window_idx: None,
parser_version: 0,
is_test: false,
vendored: false,
},
commits: vec![BlameEntry {
Expand Down Expand Up @@ -537,6 +538,7 @@ mod tests {
content_hash: String::new(),
window_idx: None,
parser_version: 0,
is_test: false,
vendored: false,
},
commits: vec![],
Expand Down
2 changes: 2 additions & 0 deletions src/cli/commands/io/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@ mod tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
}
}
Expand Down Expand Up @@ -937,6 +938,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down
1 change: 1 addition & 0 deletions src/cli/commands/io/reconstruct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ mod tests {
content_hash: String::new(),
window_idx: None,
parser_version: 0,
is_test: false,
vendored: false,
}
}
Expand Down
1 change: 1 addition & 0 deletions src/cli/commands/review/dead.rs
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ mod tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
},
confidence: DeadConfidence::High,
Expand Down
5 changes: 5 additions & 0 deletions src/cli/commands/search/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2102,6 +2102,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
};
{
let s = Store::open(&db).expect("open ref store");
Expand Down Expand Up @@ -2275,6 +2276,7 @@ mod tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
};
UnifiedResult::Code(cqs::store::SearchResult::new(summary, score))
Expand Down Expand Up @@ -2726,6 +2728,7 @@ mod tests {
parent_id: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
};
SearchResult::new(summary, score)
Expand Down Expand Up @@ -2761,6 +2764,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
};
store
.upsert_chunks_batch(&[(chunk, one_hot(*slot))], Some(0))
Expand Down Expand Up @@ -2821,6 +2825,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
};
store
.upsert_chunks_batch(&[(chunk, emb.clone())], Some(0))
Expand Down
1 change: 1 addition & 0 deletions src/cli/commands/search/similar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ mod tests {
content_hash: String::new(),
window_idx: None,
parser_version: 0,
is_test: false,
vendored: false,
},
score,
Expand Down
1 change: 1 addition & 0 deletions src/cli/commands/train/train_pairs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ mod tests {
content_hash: format!("hash_{}", name),
window_idx: None,
parser_version: 0,
is_test: false,
vendored: false,
}
}
Expand Down
1 change: 1 addition & 0 deletions src/cli/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,7 @@ mod output_schema_tests {
parent_id: Some("parent-id".to_string()), // → has_parent: true
parent_type_name: None,
parser_version: 0,
is_test: false,
vendored: false,
};
let mut sr = SearchResult::new(summary, 0.87);
Expand Down
2 changes: 2 additions & 0 deletions src/cli/enrichment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
};
let chunk_b = cqs::parser::Chunk {
id: "src/svc.rs:10:b".to_string(),
Expand All @@ -741,6 +742,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
};

// Sentinel-mode upsert → needs_embedding=1, zero-vec embeddings.
Expand Down
1 change: 1 addition & 0 deletions src/cli/pipeline/embedding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down
1 change: 1 addition & 0 deletions src/cli/pipeline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down
6 changes: 6 additions & 0 deletions src/cli/pipeline/parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down Expand Up @@ -1189,6 +1190,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: cqs::parser_version(),
is_test: false,
};
let emb = cqs::Embedding::new(vec![0.5; cqs::EMBEDDING_DIM]);

Expand Down Expand Up @@ -1323,6 +1325,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: stale_version,
is_test: false,
};
let emb = cqs::Embedding::new(vec![0.5; cqs::EMBEDDING_DIM]);

Expand Down Expand Up @@ -1420,6 +1423,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: stale_version,
is_test: false,
};
let emb = cqs::Embedding::new(vec![0.5; cqs::EMBEDDING_DIM]);
let disk_fp = FileFingerprint::read_disk(
Expand Down Expand Up @@ -1675,6 +1679,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: cqs::parser_version(),
is_test: false,
};
let emb = cqs::Embedding::new(vec![0.5; cqs::EMBEDDING_DIM]);
let divergent_fp = cqs::store::FileFingerprint {
Expand Down Expand Up @@ -1771,6 +1776,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: cqs::parser_version(),
is_test: false,
};
let emb = cqs::Embedding::new(vec![0.5; cqs::EMBEDDING_DIM]);
let divergent_fp = cqs::store::FileFingerprint {
Expand Down
1 change: 1 addition & 0 deletions src/cli/pipeline/reuse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down
1 change: 1 addition & 0 deletions src/cli/pipeline/upsert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ mod tests {
window_idx: None,
parent_type_name: None,
parser_version: 0,
is_test: false,
}
}

Expand Down
Loading
Loading