move push_input to tests

This commit is contained in:
jif-oai
2025-12-02 10:08:29 +00:00
parent e21b053207
commit 37138e64a7
+7 -4
View File
@@ -64,10 +64,6 @@ impl PromptBuilder {
self
}
pub fn push_input(&mut self, item: ResponseItem) {
self.input.push(item);
}
pub(crate) fn with_tools(mut self, tools: Vec<ToolSpec>) -> Self {
self.tools = tools;
self
@@ -373,6 +369,13 @@ mod tests {
pub slug: &'static str,
pub expects_apply_patch_instructions: bool,
}
impl PromptBuilder {
pub fn push_input(&mut self, item: ResponseItem) {
self.input.push(item);
}
}
#[test]
fn get_full_instructions_no_user_content() {
let prompt = PromptBuilder {