From a7abfb70820e0e532382951724f4d9b2a8e843c3 Mon Sep 17 00:00:00 2001 From: Jaewook Lee Date: Thu, 4 Jul 2024 12:02:49 +0900 Subject: [PATCH 1/2] Test: MockConsumerGroupSession, MockConsumerGroupClaim, MockAsyncProducer, MockConsumerGroupHandler --- internal/mocks_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/mocks_test.go b/internal/mocks_test.go index ba5f470..d9d8ecd 100644 --- a/internal/mocks_test.go +++ b/internal/mocks_test.go @@ -330,9 +330,11 @@ func TestMockAsyncProducer_TxnStatus(t *testing.T) { assert.Zero(t, producer.TxnStatus()) producer.TxnStatusFlag = sarama.ProducerTxnFlagInError + assert.NotZero(t, producer.TxnStatus()) assert.Equal(t, sarama.ProducerTxnFlagInError, producer.TxnStatus()) producer.TxnStatusFlag = sarama.ProducerTxnFlagAbortableError + assert.NotZero(t, producer.TxnStatus()) assert.Equal(t, sarama.ProducerTxnFlagAbortableError, producer.TxnStatus()) }) } From 75c8dd0e99e6a07a87d25de736ec4fbf5b00748d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 4 Jul 2024 03:04:39 +0000 Subject: [PATCH 2/2] chore: Updated coverage badge. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 14dba68..a90a1bc 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Queue Streamer -![Coverage](https://img.shields.io/badge/Coverage-91.8%25-brightgreen) +![Coverage](https://img.shields.io/badge/Coverage-100.0%25-brightgreen) [![Test](https://github.com/violetpay-org/queue-streamer/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/violetpay-org/queue-streamer/actions/workflows/test.yml) [![CodeQL](https://github.com/violetpay-org/queue-streamer/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/violetpay-org/queue-streamer/actions/workflows/github-code-scanning/codeql)