Skip to content

Unit test for image encoder and decoder. #376

Description

@kimichenn

src/utilities/base64.cpp is used to encode camera images, but there are no direct unit tests for its encoder or decoder.

  • Tests should cover empty input and inputs of 1, 2, and 3 bytes, including expected padding.
  • Tests should cover binary bytes such as 0x00 and 0xFF, including a round trip through encode and decode.
  • The tests do not need camera hardware or image files.
  • ninja test passes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions