src/developer/forensics/feedback_data/integrity_reporter.cc
// Create a complete list set of annotations from the collected annotations and the allowlist.
Create a complete list set of annotations from the collected annotations and the allowlist.
Create a complete list set of annotations from the collected annotations and the allowlist .
Annotations AllAnnotations(const AnnotationKeys& allowlist,
                           const ::fit::result<Annotations>& annotations_result) {
  Annotations all_annotations;
  if (annotations_result.is_ok()) {
    all_annotations.insert(annotations_result.value().cbegin(), annotations_result.value().cend());
  }
  for (const auto& key : allowlist) {
    if (all_annotations.find(key) == all_annotations.end()) {
      all_annotations.insert({key, AnnotationOr(Error::kLogicError)});
    }
  }
  return all_annotations;
}
Annotations AllAnnotations ( const AnnotationKeys & allowlist , const :: fit :: result < Annotations > & annotations_result ) { Annotations all_annotations ; if ( annotations_result . is_ok ( ) ) { all_annotations . insert ( annotations_result . value ( ) . cbegin ( ) , annotations_result . value ( ) . cend ( ) ) ; } for ( const auto & key : allowlist ) { if ( all_annotations . find ( key ) == all_annotations . end ( ) ) { all_annotations . insert ( { key , AnnotationOr ( Error :: kLogicError ) } ) ; } } return all_annotations ; }
Create a complete list set of annotations from the collected annotations and the allowlist.
Create a complete list set of annotations from the collected annotations and the allowlist .
// There is an annotation in the allowlist that was not produced by any provider. This // indicates a logical error on the Feedback-side.