Lines Matching refs:context
92 let context = Context { in run_target() localVariable
101 self.run(Cow::Borrowed(&func), &context) in run_target()
102 .context(self.name())?; in run_target()
109 fn run(&self, func: Cow<Function>, context: &Context) -> anyhow::Result<()>; in run()
113 pub fn run_filecheck(text: &str, context: &Context) -> anyhow::Result<()> { in run_filecheck()
120 let checker = build_filechecker(context)?; in run_filecheck()
123 .context("filecheck failed")? in run_filecheck()
130 .context("filecheck explain failed")?; in run_filecheck()
133 context.details.location.line_number, in run_filecheck()
141 pub fn build_filechecker(context: &Context) -> anyhow::Result<Checker> { in build_filechecker()
144 for comment in context.preamble_comments { in build_filechecker()
147 .context("filecheck directive failed")?; in build_filechecker()
149 for comment in &context.details.comments { in build_filechecker()
152 .context("filecheck directive failed")?; in build_filechecker()
157 pub fn check_precise_output(actual: &[&str], context: &Context) -> Result<()> { in check_precise_output()
159 let expected = context in check_precise_output()
179 return update_test(&actual, context); in check_precise_output()
192 context.details.location.line_number, in check_precise_output()
199 fn update_test(output: &[&str], context: &Context) -> Result<()> { in update_test()
200 context in update_test()
202 .update_at(&context.details.location, |new_test, old_test| { in update_test()