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

     1  package reporting
     2  
     3  type MockReporter struct {
     4  	commands []string
     5  }
     6  
     7  func (mockReporter *MockReporter) Report(report string, reportFormatting func(report string) string) (string, string, error) {
     8  	mockReporter.commands = append(mockReporter.commands, "Report")
     9  	return "", "", nil
    10  }
    11  
    12  func (mockReporter *MockReporter) Flush() (string, string, error) {
    13  	return "", "", nil
    14  }
    15  
    16  func (mockReporter *MockReporter) Suppress() error {
    17  	return nil
    18  }
    19  
    20  func (mockReporter *MockReporter) SupportsMarkdown() bool {
    21  	mockReporter.commands = append(mockReporter.commands, "SupportsMarkdown")
    22  	return false
    23  }