Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions collector/mongod/asserts_test.go

This file was deleted.

16 changes: 0 additions & 16 deletions collector/mongod/background_flushing_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions collector/mongod/connections_test.go

This file was deleted.

11 changes: 0 additions & 11 deletions collector/mongod/cursors_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions collector/mongod/durability_test.go

This file was deleted.

11 changes: 0 additions & 11 deletions collector/mongod/extra_info_test.go

This file was deleted.

14 changes: 0 additions & 14 deletions collector/mongod/global_lock_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion collector/mongod/index_counters.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (

//IndexCounterStats index counter stats
type IndexCounterStats struct {
Accesses float64 `bson:"accesses`
Accesses float64 `bson:"accesses"`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did this ever work?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure of the inner workings here but I think it would not match the bson output and therefore always report accesses as zero, but I am not 100% sure. Structs seem very forgiving of missing/undefined fields

Hits float64 `bson:"hits"`
Misses float64 `bson:"misses"`
Resets float64 `bson:"resets"`
Expand Down
11 changes: 0 additions & 11 deletions collector/mongod/index_counters_test.go

This file was deleted.

16 changes: 0 additions & 16 deletions collector/mongod/locks_test.go

This file was deleted.

11 changes: 0 additions & 11 deletions collector/mongod/memory_test.go

This file was deleted.

33 changes: 0 additions & 33 deletions collector/mongod/metrics_test.go

This file was deleted.

11 changes: 0 additions & 11 deletions collector/mongod/network_test.go

This file was deleted.

11 changes: 0 additions & 11 deletions collector/mongod/op_counters_test.go

This file was deleted.

11 changes: 2 additions & 9 deletions collector/mongod/server_status_test.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
package collector_mongod

import (
"gopkg.in/mgo.v2/bson"
"testing"
)

func Test_ServerStatusCollectData(t *testing.T) {
data := LoadFixture("server_status.bson")
serverStatus := &ServerStatus{}
loadServerStatusFromBson(data, serverStatus)

serverStatus.Export()
}
"gopkg.in/mgo.v2/bson"
)

func Test_ParserServerStatus(t *testing.T) {
data := LoadFixture("server_status.bson")
Expand Down
Loading