test: Fix small test warnings
These were issues we should be catching.
This commit is contained in:
@@ -342,7 +342,9 @@ method instead.
|
|||||||
|
|
||||||
```golang
|
```golang
|
||||||
// moduleName is already set to "math" by the math package. Do this in `init`.
|
// moduleName is already set to "math" by the math package. Do this in `init`.
|
||||||
funcs.ModuleRegister(moduleName, "cos", func() interfaces.Func { return &CosFunc{} })
|
funcs.ModuleRegister(moduleName, "cos", func() interfaces.Func {
|
||||||
|
return &CosFunc{}
|
||||||
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
### Composite functions
|
### Composite functions
|
||||||
|
|||||||
@@ -95,7 +95,8 @@ For example, translating a plain `file` resource will lead to a warning message:
|
|||||||
|
|
||||||
```
|
```
|
||||||
$ puppet mgmtgraph print --code 'file { "/tmp/mgmt-test": }'
|
$ puppet mgmtgraph print --code 'file { "/tmp/mgmt-test": }'
|
||||||
Warning: File[/tmp/mgmt-test] uses the 'puppet' file bucket, which mgmt cannot do. There will be no backup copies!
|
Warning: File[/tmp/mgmt-test] uses the 'puppet' file bucket, which mgmt cannot
|
||||||
|
do. There will be no backup copies!
|
||||||
```
|
```
|
||||||
|
|
||||||
The reason is that per default, Puppet assumes the following parameter value
|
The reason is that per default, Puppet assumes the following parameter value
|
||||||
|
|||||||
Reference in New Issue
Block a user