Skip to main content

queryBuilderToExpr_test.go

queryBuilderToExpr_test.go - Overview

This file contains unit tests for the queryBuilderToExpr package, specifically testing the Parse function which converts a v3.FilterSet into an expression string.

Detailed Documentation

testCases

  • Purpose: Defines a set of test cases for the Parse function. Each test case includes a name, a v3.FilterSet query, the expected expression string, and a flag indicating whether an error is expected.
  • Parameters: None
  • Returns: None

TestParse

  • Purpose: Tests the Parse function with different v3.FilterSet queries and validates the generated expression strings.
  • Parameters:
    • t (*testing.T): The testing object.
  • Returns: None

Include in Getting Started: NO