github.com/mackerelio/mackerel-agent-plugins@v0.89.3/mackerel-plugin-sidekiq/lib/sidekiq_test.go (about)

     1  package mpsidekiq
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestGraphDefinition(t *testing.T) {
     8  	var sp SidekiqPlugin
     9  
    10  	graphdef := sp.GraphDefinition()
    11  
    12  	expect := 3
    13  
    14  	if len(graphdef) != expect {
    15  		t.Errorf("GraphDefinition(): %d should be %d", len(graphdef), expect)
    16  	}
    17  }