github.com/diggerhq/digger/libs@v0.0.0-20240604170430-9d61cdf01cc5/comment_utils/reporting/noop.go (about)

     1  package reporting
     2  
     3  type NoopReporter struct{}
     4  
     5  func (reporter NoopReporter) Report(report string, reportFormatting func(report string) string) (string, string, error) {
     6  	return "", "", nil
     7  }
     8  
     9  func (reporter NoopReporter) Flush() (string, string, error) {
    10  	return "", "", nil
    11  }
    12  
    13  func (reporter NoopReporter) SupportsMarkdown() bool {
    14  	return false
    15  }
    16  
    17  func (reporter NoopReporter) Suppress() error {
    18  	return nil
    19  }