Skip to main content

assert_image_rubric

Function assert_image_rubric 

Source
pub fn assert_image_rubric(
    png_path: &Path,
    name: &str,
    question: &str,
) -> Result<(), RubricError>
Expand description

Evaluates a PNG and returns an error when the verdict is not pass.

ยงErrors

Returns RubricError for PNG IO, ACP, JSON parsing, or failed assertion errors.