-
-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
Description
The structure is getting obsolete as in the directories there are many functions within a directory also file names using dash instead of underscore.
directory structure
Current structure
pgtap/theLongNameDir/
which makes the need to have as prefix the name of the function on the test files for example :
ls pgtap/theLongNameDir/
theVeryLongNameBarFunction_edge_cases.sql
...
theVeryLongNameFooFunction_edge_cases.sql
...
The "not yet written" to be standard about the directory structure
Subdivide the directory with the functions and the need of prefixing the file names is gone as the prefix is on the subdirectory name
pgtap/theLongNameDir/function
Following the example above:
the directory pgtap/theLongNameDir would have 2 subdirectories:
ls pgtap/theLongNameDir/
theVeryLongNameBarFunction
theVeryLongNameFooFunction
So the files mentioned in the example:
pgtap/theLongNameDir/theVeryLongNameFooFunction/edge_cases.sql
pgtap/theLongNameDir/theVeryLongNameBarFunction/edge_cases.sql
File names
If a files use dash to separate words for example:
edge-cases.sql
The dash sometimes generates problems when using scripts as the options for commands use a dash.
To avoid those problems, use an underscore:
edge_cases.sql