aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/linux_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-11-29 09:57:18 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-11-30 13:33:18 +0100
commita142e60d5cf11dc798e4909c97803d75add83a11 (patch)
tree498344a05a38e63fee99f7d2a7485c6823129a24 /pkg/report/linux_test.go
parent229f64ce5eb21cc7b95a5642fbb6b12acf1f4cfc (diff)
pkg/mgrconfig: move derived fields into separate struct
Users should not be concerned with the internal derived fields. Move all derived fields into a separate struct before adding more. This leaves config.go as a better documentation for end users.
Diffstat (limited to 'pkg/report/linux_test.go')
-rw-r--r--pkg/report/linux_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/report/linux_test.go b/pkg/report/linux_test.go
index d1b343efe..7d1d20daa 100644
--- a/pkg/report/linux_test.go
+++ b/pkg/report/linux_test.go
@@ -14,8 +14,10 @@ import (
func TestLinuxIgnores(t *testing.T) {
cfg := &mgrconfig.Config{
- TargetOS: targets.Linux,
- TargetArch: targets.AMD64,
+ Derived: mgrconfig.Derived{
+ TargetOS: targets.Linux,
+ TargetArch: targets.AMD64,
+ },
}
reporter, err := NewReporter(cfg)
if err != nil {