jeffmur / fhel

Fully Homomorphic Encryption Library

Home Page:https://pub.dev/packages/fhel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CPP Unit Testing

jeffmur opened this issue · comments

Require unit test of FHEL, this should eventually be tested with github actions.

There are three layers in this system:

  1. Back-end Library (Microsoft SEAL, OpenFHE)
  2. Abstract Layer (AFHEL)
  3. Implementation Layer (Dart API)

Each layer should contain good test coverage. This repository is only responsible for maintaining layer 2 and 3, so we must test appropriately.

There are two popular CPP frameworks for testing.

For the purpose of this project

  • Basic Functionality
  • Parameter Validation
  • API Usage

Google Test: https://github.com/google/googletest

  • Supports mock testing
  • Requires additional compilation process (de-coupled from source)

Catch2: https://github.com/catchorg/Catch2

  • Simple unit testing
  • Supports benchmarking