@@ -6,7 +6,7 @@ to check before contributing.
6
6
* Tester is opinionated
7
7
* Tester is lightweight
8
8
* Tester is intuitive
9
- * Tester is consitent
9
+ * Tester is consistent
10
10
11
11
## Dependency Management
12
12
Copy dependencies to the ` vendor ` folder.
@@ -45,22 +45,23 @@ and ending with helper functions and helper types.
45
45
Keep line length under 120 characters for code and 80 for documentation.
46
46
Break lines in a way that improves readability but still keeps the code compact;
47
47
for example,
48
-
49
- callable.testContext.errorf(
50
- file, line, "Function call did not panic as expected.\nExpected: %s\n", expectedError)
51
-
48
+ ``` go
49
+ callable.testContext .errorf (
50
+ file, line, " Function call did not panic as expected.\n Expected: %s \n " , expectedError)
51
+ ```
52
52
is readable and more compact than
53
-
54
- callable.testContext.errorf(
55
- file,
56
- line,
57
- "Function call did not panic as expected.\nExpected: %s\n",
58
- expectedError)
59
-
53
+ ``` go
54
+ callable.testContext .errorf (
55
+ file,
56
+ line,
57
+ " Function call did not panic as expected.\n Expected: %s \n " ,
58
+ expectedError)
59
+ ```
60
60
Either is definitely more readable than
61
-
62
- callable.testContext.errorf(file, line,
63
- "Function call did not panic as expected.\nExpected: %s\n", expectedError)
61
+ ``` go
62
+ callable.testContext .errorf (file, line,
63
+ " Function call did not panic as expected.\n Expected: %s \n " , expectedError)
64
+ ```
64
65
65
66
#### Variable Names
66
67
Do not prefer ` c ` to ` lineCount ` ; see _ Clean Code, Chapter 2: Meaningful Names_ .
0 commit comments