about summary refs log tree commit diff
path: root/src/payload-processor/processor/processor_test.go
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-04 21:22:54 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-04 21:22:54 +0200
commit642195d99e0e8fa862ec476573a7064d91ffce36 (patch)
treeb178f045fbf6730161b9f4335604df1825f14c23 /src/payload-processor/processor/processor_test.go
parentpayload-processor: add concurrency (diff)
downloadfs-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.go18
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)
+}