github.com/mier85/go-sensor@v1.30.1-0.20220920111756-9bf41b3bc7e0/acceptor/runtime_test.go (about) 1 // (c) Copyright IBM Corp. 2021 2 // (c) Copyright Instana Inc. 2020 3 4 package acceptor_test 5 6 import ( 7 "testing" 8 9 "github.com/instana/testify/assert" 10 "github.com/mier85/go-sensor/acceptor" 11 ) 12 13 func TestNewGoProcessPluginPayload(t *testing.T) { 14 data := acceptor.GoProcessData{ 15 PID: 42, 16 } 17 18 assert.Equal(t, acceptor.PluginPayload{ 19 Name: "com.instana.plugin.golang", 20 EntityID: "42", 21 Data: data, 22 }, acceptor.NewGoProcessPluginPayload(data)) 23 }