Uploaded image for project: 'Managed Service - Streams'
  1. Managed Service - Streams
  2. MGDSTRM-7986 Increase unit test code coverage in pkg/db
  3. MGDSTRM-9005

Increase unit test code coverage in pkg/db/transaction_middleware.go

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • MK - Sprint 224

      WHAT

      Increase unit test code coverage in pkg/db/transaction_middleware.go where possible or ignore this file, if writing unit tests for it is not feasible in the make test make target

      To see which lines aren't covered in the pkg/db/transaction_middleware.go file run:

      make test
      make test/html/coverage/report
      

      IMPORTANT

      Try to reuse code that exists in test/mocks/api_server.go or write object creation functions in the test/mocks/ or internal/kafka/test/mocks (if the test is in the internal package) instead of creating test objects in the individual test files. If objects required for testing aren't created in the test/mocks/api_server.go, feel free to create new file that will include reusable test stuff related to your tests

              japower@redhat.com Jason Power
              ppaszki Pawel paszki
              MK - Control Plane
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: