diff --git a/go.mod b/go.mod index 42bf668..6574f12 100644 --- a/go.mod +++ b/go.mod @@ -10,5 +10,5 @@ require ( github.com/shirou/gopsutil v2.20.9+incompatible github.com/sirupsen/logrus v1.7.0 github.com/spf13/pflag v1.0.5 - github.com/stretchr/testify v1.6.1 // indirect + github.com/stretchr/testify v1.6.1 ) diff --git a/stats/meta_test.go b/stats/meta_test.go new file mode 100644 index 0000000..c8e2615 --- /dev/null +++ b/stats/meta_test.go @@ -0,0 +1,24 @@ +package stats + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestNewMeta(t *testing.T) { + tests := []struct { + name string + want *Meta + wantErr bool + }{ + // TODO: Add test cases. + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got, err := NewMeta() + assert.Equal(t, tt.wantErr, err != nil) + assert.Equal(t, tt.want, got) + }) + } +} diff --git a/stats/stats_test.go b/stats/stats_test.go new file mode 100644 index 0000000..10ac3ca --- /dev/null +++ b/stats/stats_test.go @@ -0,0 +1,24 @@ +package stats + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestNewStats(t *testing.T) { + tests := []struct { + name string + want *Stats + wantErr bool + }{ + // TODO: Add test cases. + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got, err := NewStats() + assert.Equal(t, tt.wantErr, err != nil) + assert.Equal(t, tt.want, got) + }) + } +}