Documentation
¶
Index ¶
- func UpdateTranslationTestCases(mapper pgsql.KindMapper) error
- type TranslationTestCase
- func (s *TranslationTestCase) Assert(t *testing.T, expectedSQL string, kindMapper pgsql.KindMapper)
- func (s *TranslationTestCase) AssertLive(ctx context.Context, t *testing.T, driver *pg.Driver)
- func (s *TranslationTestCase) Copy() *TranslationTestCase
- func (s *TranslationTestCase) Reset()
- func (s *TranslationTestCase) WriteTo(output io.Writer, kindMapper pgsql.KindMapper) error
- type TranslationTestCaseFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateTranslationTestCases ¶
func UpdateTranslationTestCases(mapper pgsql.KindMapper) error
Types ¶
type TranslationTestCase ¶
type TranslationTestCase struct {
Name string
Cypher string
PgSQL string
CypherParams map[string]any
PgSQLParams map[string]any
}
Case is a translation test case
func ReadTranslationTestCases ¶
func ReadTranslationTestCases() ([]*TranslationTestCase, error)
func (*TranslationTestCase) Assert ¶
func (s *TranslationTestCase) Assert(t *testing.T, expectedSQL string, kindMapper pgsql.KindMapper)
func (*TranslationTestCase) AssertLive ¶
func (*TranslationTestCase) Copy ¶
func (s *TranslationTestCase) Copy() *TranslationTestCase
func (*TranslationTestCase) Reset ¶
func (s *TranslationTestCase) Reset()
func (*TranslationTestCase) WriteTo ¶
func (s *TranslationTestCase) WriteTo(output io.Writer, kindMapper pgsql.KindMapper) error
type TranslationTestCaseFile ¶
type TranslationTestCaseFile struct {
// contains filtered or unexported fields
}
func ReadTranslationTestCaseFile ¶
func ReadTranslationTestCaseFile(path string, fin fs.File) (TranslationTestCaseFile, error)
func (*TranslationTestCaseFile) Load ¶
func (s *TranslationTestCaseFile) Load() ([]*TranslationTestCase, bool, error)
Click to show internal directories.
Click to hide internal directories.