Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.52 KB

code_conventions.md

File metadata and controls

57 lines (40 loc) · 1.52 KB

coding conventions

Caution: This code convention is made under discussion among the contributor. So, please submit a ticket to discuss if you have a comment or an idea.

Tests

Test class and method coding rule as follow,

1. Class name

1-1. Add a prefix of Test.

1-2. Target test class name. Or feature name that is not link the target class.

Example:

TestColumnBinary

2. Test method name

2-1. Add a prefix of "T".

2-2. Test method name separates following three parts with "_"

2-2-1. Test target method or the feature name that you want to test.

2-2-2. Expected behavior. If there is nothing, insert void, etc.

2-2-3. Prerequisites, If not, do not write this part.

Example:

T_get_intValue
T_get_intValue_withNull
T_filterAndGetValue
T_filterAndGetValue_withPerfectMatch
T_get_throwsException_withObjectIsString

3. discussion log

2019/06/18 ver.1 Create the Primitive convention