(t *testing.T)
| 12 | } |
| 13 | |
| 14 | func TestHeader(t *testing.T) { |
| 15 | const ( |
| 16 | title = "test title" |
| 17 | noTitleHeader = `package testpackage |
| 18 | |
| 19 | ` |
| 20 | singleImportHeader = `package testpackage |
| 21 | |
| 22 | import "test" |
| 23 | |
| 24 | ` |
| 25 | manyImportsHeader = `package testpackage |
| 26 | |
| 27 | import ( |
| 28 | "test" |
| 29 | "other" |
| 30 | ) |
| 31 | |
| 32 | ` |
| 33 | |
| 34 | pathImportHeader = `package testpackage |
| 35 | |
| 36 | import "import/with/slashes" |
| 37 | |
| 38 | ` |
| 39 | |
| 40 | pathImportsHeader = `package testpackage |
| 41 | |
| 42 | import ( |
| 43 | "import/with/slashes" |
| 44 | "other/import/with/slashes" |
| 45 | ) |
| 46 | |
| 47 | ` |
| 48 | |
| 49 | pathNamedImportHeader = `package testpackage |
| 50 | |
| 51 | import myname "import/with/slashes" |
| 52 | |
| 53 | ` |
| 54 | pathNamedImportsHeader = `package testpackage |
| 55 | |
| 56 | import ( |
| 57 | myname "import/with/slashes" |
| 58 | myothername "other/import/with/slashes" |
| 59 | ) |
| 60 | |
| 61 | ` |
| 62 | ) |
| 63 | var ( |
| 64 | titleHeader = `// Code generated by goa, DO NOT EDIT. |
| 65 | // |
| 66 | // test title |
| 67 | // |
| 68 | // Command: |
| 69 | // goa |
| 70 | |
| 71 | package testpackage |
nothing calls this directly
no test coverage detected