addAttributes creates returns a specifed number of attributes in a schema structure
(numAtrributes int)
| 55 | |
| 56 | // addAttributes creates returns a specifed number of attributes in a schema structure |
| 57 | func addAttributes(numAtrributes int) map[string]string { |
| 58 | attributes := make(map[string]string) |
| 59 | for i := 0; i < numAtrributes; i++ { |
| 60 | AttributeName := "Name_" + GetRandomString(6, false) |
| 61 | attributes[AttributeName] = "Value_" + GetRandomString(6, false) |
| 62 | LogInfoMessage(fmt.Sprintf("Add attribute : %s = %s", AttributeName, attributes[AttributeName])) |
| 63 | } |
| 64 | return attributes |
| 65 | } |
| 66 | |
| 67 | // addGroup creates and returns a group in a schema structure |
| 68 | func (testDevFile *TestDevfile) addGroup() *schema.CommandGroup { |
nothing calls this directly
no test coverage detected