diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-05-04 21:22:54 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-05-04 21:22:54 +0200 |
commit | 642195d99e0e8fa862ec476573a7064d91ffce36 (patch) | |
tree | b178f045fbf6730161b9f4335604df1825f14c23 /src/payload-processor/processor/processor_test.go | |
parent | payload-processor: add concurrency (diff) | |
download | fs-tracer-backend-642195d99e0e8fa862ec476573a7064d91ffce36.tar.gz fs-tracer-backend-642195d99e0e8fa862ec476573a7064d91ffce36.tar.bz2 fs-tracer-backend-642195d99e0e8fa862ec476573a7064d91ffce36.zip |
payload-processor: set up testing
Diffstat (limited to 'src/payload-processor/processor/processor_test.go')
-rw-r--r-- | src/payload-processor/processor/processor_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/payload-processor/processor/processor_test.go b/src/payload-processor/processor/processor_test.go new file mode 100644 index 0000000..ee2ef5f --- /dev/null +++ b/src/payload-processor/processor/processor_test.go @@ -0,0 +1,18 @@ +package processor + +import ( + "testing" + + "github.com/segmentio/kafka-go" + "github.com/stretchr/testify/require" +) + +func TestProcessMessage(t *testing.T) { + processor := Processor{} + + message := []byte("test") + + err := processor.handleMessage(kafka.Message{Value: message}) + + require.NoError(t, err) +} |