<commit_before>//
// +build unit

package perfevents

import (
	"testing"

	"github.com/intelsdi-x/pulse/control/plugin"
	"github.com/intelsdi-x/pulse/control/plugin/cpolicy"
	. "github.com/smartystreets/goconvey/convey"
)

func TestPSUtilPlugin(t *testing.T) {
	Convey("Meta should return metadata for the plugin", t, func() {
		meta := Meta()
		So(meta.Name, ShouldResemble, name)
		So(meta.Version, ShouldResemble, version)
		So(meta.Type, ShouldResemble, plugin.CollectorPluginType)
	})

	Convey("Create PerfEvents Collector", t, func() {
		pfCol := NewPerfeventsCollector()
		Convey("So pfCol should not be nil", func() {
			So(pfCol, ShouldNotBeNil)
		})<commit_msg>Update test name<commit_after>//
// +build unit

package perfevents

import (
	"testing"

	"github.com/intelsdi-x/pulse/control/plugin"
	"github.com/intelsdi-x/pulse/control/plugin/cpolicy"
	. "github.com/smartystreets/goconvey/convey"
)

func TestPerfeventsPlugin(t *testing.T) {
	Convey("Meta should return metadata for the plugin", t, func() {
		meta := Meta()
		So(meta.Name, ShouldResemble, name)
		So(meta.Version, ShouldResemble, version)
		So(meta.Type, ShouldResemble, plugin.CollectorPluginType)
	})

	Convey("Create PerfEvents Collector", t, func() {
		pfCol := NewPerfeventsCollector()
		Convey("So pfCol should not be nil", func() {
			So(pfCol, ShouldNotBeNil)
		})
{'fraction_non_alphanumeric': 0.14063656550703182, 'fraction_numerical': 0.0, 'mean_word_length': 4.753191489361702, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3925163', 'n_tokens_mistral': 518, 'n_tokens_neox': 493, 'n_words': 100}