Amended tests

This commit is contained in:
nickmontoya2 2016-01-15 16:11:15 -07:00
parent 96d6ddf06d
commit 1279101110
1 changed files with 9 additions and 9 deletions

View File

@ -10,8 +10,6 @@ func TestProcs(t *testing.T) {
s := &proCount {
count: 200,
}
var acc testutil.Accumulator
/*
I don't know how I can test to check that the
@ -21,15 +19,17 @@ func TestProcs(t *testing.T) {
prove anything. I can't iterate through a set of
integer values and show that it won't have errors
accepting ints but that still doesn't prove that
number of processes listed is correct.
number of processes listed is correct. */
fieldData := ???
for i:= 0; i < to; i++ {
fields := make(map[string]interface{})
fields["Processes"] = fieldData
var acc testutil.Accumulator
//This is where I don't know how to test it. fieldData :=
assert.True(t, acc.CheckFieldsValue("processes", fields))
*/
fields := make(map[string]interface{})
fields["Processes"] = fieldData
assert.True(t, acc.CheckFieldsValue("processes", fields))
}
}