pub fn verify(mut self) -> Result<(), VerifyErrors<'g>> {
        self.verify_mode = true;
        let hakari = self.compute();
        if hakari.output_map.is_empty() {
            Ok(())
        } else {
            let mut dependency_ids = BTreeSet::new();

            for ((_, package_id), v) in &hakari.computed_map {
                for (_, inner_map) in v.inner_maps() {
                    if inner_map.len() > 1 {
                        dependency_ids.insert(*package_id);
                    }
                }
            }
            Err(VerifyErrors {
                hakari,
                dependency_ids,
            })
        }
    }
Verify that `hakari` worked properly.

Returns `Ok(())` if only one version of every third-party dependency was built, or a list of
errors if at least one third-party dependency had more than one version built.

For more about how this works, see the documentation for the [`verify`](crate::verify)
module.
tools/hakari/src/verify/mod.rs