Skip to content

Commit 9b0da25

Browse files
committed
Update testing report
1 parent 694513d commit 9b0da25

1 file changed

Lines changed: 76 additions & 0 deletions

File tree

README.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,82 @@ Param:
484484
[1 foo true 100 1 2020-01-01 2023-01-01 2 10]
485485
```
486486

487+
## Testing
488+
489+
```go
490+
> go test -v -cover ./...
491+
=== RUN TestConstructor
492+
--- PASS: TestConstructor (0.00s)
493+
=== RUN TestConstructor_Fail
494+
--- PASS: TestConstructor_Fail (0.00s)
495+
=== RUN TestRawJson_OK
496+
--- PASS: TestRawJson_OK (0.00s)
497+
=== RUN TestRawJson_Error
498+
--- PASS: TestRawJson_Error (0.00s)
499+
=== RUN TestMaskedQueryValue
500+
--- PASS: TestMaskedQueryValue (0.00s)
501+
=== RUN TestGenerateSelectFrom
502+
--- PASS: TestGenerateSelectFrom (0.00s)
503+
=== RUN TestGenerateSelectFrom_Selection
504+
--- PASS: TestGenerateSelectFrom_Selection (0.00s)
505+
=== RUN TestGenerateSelectFrom_CaseWhenThen
506+
--- PASS: TestGenerateSelectFrom_CaseWhenThen (0.00s)
507+
=== RUN TestGenerateSelectFrom_CaseDefaultValueSub
508+
--- PASS: TestGenerateSelectFrom_CaseDefaultValueSub (0.00s)
509+
=== RUN TestSqlLikeAndBlankDatatype
510+
--- PASS: TestSqlLikeAndBlankDatatype (0.00s)
511+
=== RUN TestSqlLikeWithOperand
512+
--- PASS: TestSqlLikeWithOperand (0.00s)
513+
=== RUN TestBetweenWithOperand
514+
--- PASS: TestBetweenWithOperand (0.00s)
515+
=== RUN TestCompositeWithoutOperand
516+
--- PASS: TestCompositeWithoutOperand (0.00s)
517+
=== RUN TestGenerateOrderBy
518+
--- PASS: TestGenerateOrderBy (0.00s)
519+
=== RUN TestGenerateOrderBy_WithSort
520+
--- PASS: TestGenerateOrderBy_WithSort (0.00s)
521+
=== RUN TestGenerateGroupBy
522+
--- PASS: TestGenerateGroupBy (0.00s)
523+
=== RUN TestGenerateJoin_JOIN
524+
--- PASS: TestGenerateJoin_JOIN (0.00s)
525+
=== RUN TestGenerateJoin_INNER_JOIN
526+
--- PASS: TestGenerateJoin_INNER_JOIN (0.00s)
527+
=== RUN TestGenerateJoin_LEFT_JOIN
528+
--- PASS: TestGenerateJoin_LEFT_JOIN (0.00s)
529+
=== RUN TestGenerateJoin_RIGHT_JOIN
530+
--- PASS: TestGenerateJoin_RIGHT_JOIN (0.00s)
531+
=== RUN TestGenerateHaving
532+
--- PASS: TestGenerateHaving (0.00s)
533+
=== RUN TestGenerateWhere
534+
--- PASS: TestGenerateWhere (0.00s)
535+
=== RUN TestGenerateConditions
536+
--- PASS: TestGenerateConditions (0.00s)
537+
=== RUN TestGenerateConditions_SubQuery
538+
--- PASS: TestGenerateConditions_SubQuery (0.00s)
539+
=== RUN TestBuildJsonToSql
540+
--- PASS: TestBuildJsonToSql (0.00s)
541+
=== RUN TestGenerateJsonToSql
542+
--- PASS: TestGenerateJsonToSql (0.00s)
543+
=== RUN TestIsValidDataType
544+
--- PASS: TestIsValidDataType (0.00s)
545+
=== RUN TestGetValueFromDataType
546+
--- PASS: TestGetValueFromDataType (0.00s)
547+
=== RUN TestCheckArrayType
548+
--- PASS: TestCheckArrayType (0.00s)
549+
=== RUN TestArrayConversionToStringExpression
550+
--- PASS: TestArrayConversionToStringExpression (0.00s)
551+
=== RUN TestExtractValueByDataType
552+
--- PASS: TestExtractValueByDataType (0.00s)
553+
=== RUN TestGetSqlExpression
554+
--- PASS: TestGetSqlExpression (0.00s)
555+
=== RUN TestIsValidOperator
556+
--- PASS: TestIsValidOperator (0.00s)
557+
=== RUN TestGetValueFromOperator
558+
--- PASS: TestGetValueFromOperator (0.00s)
559+
PASS
560+
coverage: 100.0% of statements
561+
```
562+
487563
## Benchmarking
488564

489565
In this benchmarking process, I used a 2020 MacBook Pro M1 with an 8-core processor (arm64) and 8GB of RAM. The following are the benchmark results obtained on my MacBook.

0 commit comments

Comments
 (0)