canonical / sqlair

Friendly type mapping for SQL databases
Apache License 2.0
16 stars 8 forks source link

Update field names in expr_test.go #115

Closed Aflynn50 closed 7 months ago

Aflynn50 commented 9 months ago

Add field names to the list of table driven tests for TestExpr. Change the field names: expectedPrepared -> expectedSQL prepareArgs -> typeSamples queryArgs -> inputArgs

Adding field names to the table driven tests means that tests which do not require every field can omit some (this is done in #112). It also aids readability.

The name changes keep the names consistent with recent changes elsewhere in the codebase.