Documentation in literate-programming-style is available at:
https://redhatinsights.github.io/ccx-notification-service/packages/disabled/disabledproducertest.html
|
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestDisabledProducer ( t * testing . T ) {
p := Producer { }
_ , _ , err := p . ProduceMessage ( [ ] byte { } )
assert . NoError ( t , err , "error producing message" )
assert . NoError ( t , p . Close ( ) , "error closing producer" )
}
|