This is an automated email from the ASF dual-hosted git repository. lhotari pushed a commit to branch lh-address-go-cves in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 3e451e2643fb7a829d19504943d35fdc0656366d Author: Lari Hotari <[email protected]> AuthorDate: Thu Jul 2 21:31:17 2026 +0300 Add IsNullValue to MockMessage test mock for pulsar-client-go v0.20.0 pulsar-client-go v0.20.0 adds IsNullValue() bool to the pulsar.Message interface. Implement it in the test-only MockMessage so the pf test package compiles again (fixes the golangci-lint typecheck failure). Assisted-by: Claude Code (Opus 4.8) --- pulsar-function-go/pf/mockMessage_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pulsar-function-go/pf/mockMessage_test.go b/pulsar-function-go/pf/mockMessage_test.go index d5bfe0961e3..a34c2634863 100644 --- a/pulsar-function-go/pf/mockMessage_test.go +++ b/pulsar-function-go/pf/mockMessage_test.go @@ -48,6 +48,10 @@ func (m *MockMessage) Payload() []byte { return m.payload } +func (m *MockMessage) IsNullValue() bool { + return m.payload == nil +} + func (m *MockMessage) ID() pulsar.MessageID { return m.messageID }
