File tree Expand file tree Collapse file tree 2 files changed +25
-8
lines changed Expand file tree Collapse file tree 2 files changed +25
-8
lines changed Original file line number Diff line number Diff line change @@ -155,19 +155,22 @@ func TestGroupDirName(t *testing.T) {
155
155
func TestCreateGroupReadmes (t * testing.T ) {
156
156
baseGeneratorDir = "generated"
157
157
templateDir = "../../generator"
158
+ const groupType = "sig"
158
159
159
- groups := []Group {
160
- {Name : "Foo" },
161
- {Name : "Bar" },
160
+ groups := []Group {}
161
+ for _ , n := range []string {"Foo" , "Bar" } {
162
+ g := Group {Name : n }
163
+ g .Dir = g .DirName (groupType )
164
+ groups = append (groups , g )
162
165
}
163
166
164
- err := createGroupReadme (groups , "sig" )
167
+ err := createGroupReadme (groups , groupType )
165
168
if err != nil {
166
169
t .Fatal (err )
167
170
}
168
171
169
172
for _ , group := range groups {
170
- path := filepath .Join (baseGeneratorDir , group .DirName ("sig" ), "README.md" )
173
+ path := filepath .Join (baseGeneratorDir , group .DirName (groupType ), "README.md" )
171
174
if ! pathExists (path ) {
172
175
t .Fatalf ("%s should exist" , path )
173
176
}
Original file line number Diff line number Diff line change 1
1
sigs :
2
- - name : Foo
3
- - name : Bar
2
+ - dir : sig-foo
3
+ name : Foo
4
+ label : foo
5
+ charter_link : foo-charter
6
+ mission_statement : covers foo
7
+ subprojects :
8
+ - name : sub-foo
9
+ - dir : sig-bar
10
+ name : Bar
11
+ label : bar
12
+ charter_link : charter-bar
13
+ mission_statement : owns areas related to bar
14
+ subprojects :
15
+ - name : sub-bar
4
16
workinggroups :
5
- - name : Baz
17
+ - dir : wg-baz
18
+ name : Baz
19
+ label : baz
You can’t perform that action at this time.
0 commit comments