瀏覽代碼

Add some CouplesAnaysis tests

Vadim Markovtsev 7 年之前
父節點
當前提交
7ea921f6a7
共有 5 個文件被更改,包括 156 次插入80 次删除
  1. 15 15
      couples.go
  2. 78 2
      couples_test.go
  3. 1 1
      doc.go
  4. 61 61
      pb/pb.pb.go
  5. 1 1
      pb/pb.proto

+ 15 - 15
couples.go

@@ -13,7 +13,7 @@ import (
 	"gopkg.in/src-d/hercules.v3/stdout"
 )
 
-type Couples struct {
+type CouplesAnalysis struct {
 	// The number of developers for which to build the matrix. 0 disables this analysis.
 	PeopleNumber int
 
@@ -34,35 +34,35 @@ type CouplesResult struct {
 	Files        []string
 }
 
-func (couples *Couples) Name() string {
+func (couples *CouplesAnalysis) Name() string {
 	return "Couples"
 }
 
-func (couples *Couples) Provides() []string {
+func (couples *CouplesAnalysis) Provides() []string {
 	return []string{}
 }
 
-func (couples *Couples) Requires() []string {
+func (couples *CouplesAnalysis) Requires() []string {
 	arr := [...]string{"author", "changes"}
 	return arr[:]
 }
 
-func (couples *Couples) ListConfigurationOptions() []ConfigurationOption {
+func (couples *CouplesAnalysis) ListConfigurationOptions() []ConfigurationOption {
 	return []ConfigurationOption{}
 }
 
-func (couples *Couples) Configure(facts map[string]interface{}) {
+func (couples *CouplesAnalysis) Configure(facts map[string]interface{}) {
 	if val, exists := facts[FactIdentityDetectorPeopleCount].(int); exists {
 		couples.PeopleNumber = val
 		couples.reversedPeopleDict = facts[FactIdentityDetectorReversedPeopleDict].([]string)
 	}
 }
 
-func (couples *Couples) Flag() string {
+func (couples *CouplesAnalysis) Flag() string {
 	return "couples"
 }
 
-func (couples *Couples) Initialize(repository *git.Repository) {
+func (couples *CouplesAnalysis) Initialize(repository *git.Repository) {
 	couples.people = make([]map[string]int, couples.PeopleNumber+1)
 	for i := range couples.people {
 		couples.people[i] = map[string]int{}
@@ -71,7 +71,7 @@ func (couples *Couples) Initialize(repository *git.Repository) {
 	couples.files = map[string]map[string]int{}
 }
 
-func (couples *Couples) Consume(deps map[string]interface{}) (map[string]interface{}, error) {
+func (couples *CouplesAnalysis) Consume(deps map[string]interface{}) (map[string]interface{}, error) {
 	author := deps["author"].(int)
 	if author == MISSING_AUTHOR {
 		author = couples.PeopleNumber
@@ -136,7 +136,7 @@ func (couples *Couples) Consume(deps map[string]interface{}) (map[string]interfa
 	return nil, nil
 }
 
-func (couples *Couples) Finalize() interface{} {
+func (couples *CouplesAnalysis) Finalize() interface{} {
 	filesSequence := make([]string, len(couples.files))
 	i := 0
 	for file := range couples.files {
@@ -184,7 +184,7 @@ func (couples *Couples) Finalize() interface{} {
 		Files: filesSequence, FilesMatrix: filesMatrix}
 }
 
-func (couples *Couples) Serialize(result interface{}, binary bool, writer io.Writer) error {
+func (couples *CouplesAnalysis) Serialize(result interface{}, binary bool, writer io.Writer) error {
 	couplesResult := result.(CouplesResult)
 	if binary {
 		return couples.serializeBinary(&couplesResult, writer)
@@ -193,7 +193,7 @@ func (couples *Couples) Serialize(result interface{}, binary bool, writer io.Wri
 	return nil
 }
 
-func (couples *Couples) serializeText(result *CouplesResult, writer io.Writer) {
+func (couples *CouplesAnalysis) serializeText(result *CouplesResult, writer io.Writer) {
 	fmt.Fprintln(writer, "  files_coocc:")
 	fmt.Fprintln(writer, "    index:")
 	for _, file := range result.Files {
@@ -284,8 +284,8 @@ func (s authorFilesList) Less(i, j int) bool {
 	return len(s[i].Files) < len(s[j].Files)
 }
 
-func (couples *Couples) serializeBinary(result *CouplesResult, writer io.Writer) error {
-	message := pb.CouplesResults{}
+func (couples *CouplesAnalysis) serializeBinary(result *CouplesResult, writer io.Writer) error {
+	message := pb.CouplesAnalysisResults{}
 
 	message.FileCouples = &pb.Couples{
 		Index:  result.Files,
@@ -318,5 +318,5 @@ func (couples *Couples) serializeBinary(result *CouplesResult, writer io.Writer)
 }
 
 func init() {
-	Registry.Register(&Couples{})
+	Registry.Register(&CouplesAnalysis{})
 }

+ 78 - 2
couples_test.go

@@ -1,15 +1,18 @@
 package hercules
 
 import (
+	"bytes"
 	"strings"
 	"testing"
 
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
+	"gopkg.in/src-d/hercules.v3/pb"
+	"github.com/gogo/protobuf/proto"
 )
 
-func fixtureCouples() *Couples {
-	c := Couples{PeopleNumber: 3}
+func fixtureCouples() *CouplesAnalysis {
+	c := CouplesAnalysis{PeopleNumber: 3}
 	c.Initialize(testRepository)
 	return &c
 }
@@ -21,6 +24,17 @@ func TestCouplesMeta(t *testing.T) {
 	assert.Equal(t, len(c.Requires()), 2)
 	assert.Equal(t, c.Requires()[0], "author")
 	assert.Equal(t, c.Requires()[1], "changes")
+	assert.Equal(t, c.Flag(), "couples")
+	assert.Len(t, c.ListConfigurationOptions(), 0)
+}
+
+func TestCouplesRegistration(t *testing.T) {
+	tp, exists := Registry.registered[(&CouplesAnalysis{}).Name()]
+	assert.True(t, exists)
+	assert.Equal(t, tp.Elem().Name(), "CouplesAnalysis")
+	tp, exists = Registry.flags[(&CouplesAnalysis{}).Flag()]
+	assert.True(t, exists)
+	assert.Equal(t, tp.Elem().Name(), "CouplesAnalysis")
 }
 
 func generateChanges(names ...string) object.Changes {
@@ -141,3 +155,65 @@ func TestCouplesConsumeFinalize(t *testing.T) {
 	assert.Equal(t, cr.FilesMatrix[2][1], int64(2))
 	assert.Equal(t, cr.FilesMatrix[2][2], int64(2))
 }
+
+func TestCouplesSerialize(t *testing.T) {
+	c := fixtureCouples()
+	c.PeopleNumber = 1
+	people := [...]string{"p1", "p2", "p3"}
+	facts := map[string]interface{}{}
+	c.Configure(facts)
+	assert.Equal(t, c.PeopleNumber, 1)
+	facts[FactIdentityDetectorPeopleCount] = 3
+	facts[FactIdentityDetectorReversedPeopleDict] = people[:]
+	c.Configure(facts)
+	assert.Equal(t, c.PeopleNumber, 3)
+	deps := map[string]interface{}{}
+	deps["author"] = 0
+	deps["changes"] = generateChanges("+two", "+four", "+six")
+	c.Consume(deps)
+	deps["changes"] = generateChanges("+one", "-two", "=three", ">four>five")
+	c.Consume(deps)
+	deps["author"] = 1
+	deps["changes"] = generateChanges("=one", "=three", "-six")
+	c.Consume(deps)
+	deps["author"] = 2
+	deps["changes"] = generateChanges("=five")
+	c.Consume(deps)
+	result := c.Finalize().(CouplesResult)
+	buffer := &bytes.Buffer{}
+	c.Serialize(result, false, buffer)
+	assert.Equal(t, buffer.String(), `  files_coocc:
+    index:
+      - "five"
+      - "one"
+      - "three"
+    matrix:
+      - {0: 3, 1: 1, 2: 1}
+      - {0: 1, 1: 2, 2: 2}
+      - {0: 1, 1: 2, 2: 2}
+  people_coocc:
+    index:
+      - "p1"
+      - "p2"
+      - "p3"
+    matrix:
+      - {0: 7, 1: 3, 2: 1}
+      - {0: 3, 1: 3}
+      - {0: 1, 2: 1}
+      - {}
+    author_files:
+      - "p3":
+        - "five"
+      - "p2":
+        - "one"
+        - "three"
+      - "p1":
+        - "five"
+        - "one"
+        - "three"
+`)
+	buffer = &bytes.Buffer{}
+	c.Serialize(result, true, buffer)
+	msg := pb.CouplesAnalysisResults{}
+	proto.Unmarshal(buffer.Bytes(), &msg)
+}

+ 1 - 1
doc.go

@@ -9,7 +9,7 @@ statistics but rather provide the requirements for other items. The top-level it
 include:
 
 - BurndownAnalysis - line burndown statistics for project, files and developers.
-- Couples - coupling statistics for files and developers.
+- CouplesAnalysis - coupling statistics for files and developers.
 
 The typical API usage is to initialize the Pipeline class:
 

+ 61 - 61
pb/pb.pb.go

@@ -16,7 +16,7 @@ It has these top-level messages:
 	Couples
 	TouchedFiles
 	DeveloperTouchedFiles
-	CouplesResults
+	CouplesAnalysisResults
 	UASTChange
 	UASTChangesSaverResults
 	AnalysisResults
@@ -320,32 +320,32 @@ func (m *DeveloperTouchedFiles) GetDevelopers() []*TouchedFiles {
 	return nil
 }
 
-type CouplesResults struct {
+type CouplesAnalysisResults struct {
 	FileCouples      *Couples               `protobuf:"bytes,6,opt,name=file_couples,json=fileCouples" json:"file_couples,omitempty"`
 	DeveloperCouples *Couples               `protobuf:"bytes,7,opt,name=developer_couples,json=developerCouples" json:"developer_couples,omitempty"`
 	TouchedFiles     *DeveloperTouchedFiles `protobuf:"bytes,8,opt,name=touched_files,json=touchedFiles" json:"touched_files,omitempty"`
 }
 
-func (m *CouplesResults) Reset()                    { *m = CouplesResults{} }
-func (m *CouplesResults) String() string            { return proto.CompactTextString(m) }
-func (*CouplesResults) ProtoMessage()               {}
-func (*CouplesResults) Descriptor() ([]byte, []int) { return fileDescriptorPb, []int{8} }
+func (m *CouplesAnalysisResults) Reset()                    { *m = CouplesAnalysisResults{} }
+func (m *CouplesAnalysisResults) String() string            { return proto.CompactTextString(m) }
+func (*CouplesAnalysisResults) ProtoMessage()               {}
+func (*CouplesAnalysisResults) Descriptor() ([]byte, []int) { return fileDescriptorPb, []int{8} }
 
-func (m *CouplesResults) GetFileCouples() *Couples {
+func (m *CouplesAnalysisResults) GetFileCouples() *Couples {
 	if m != nil {
 		return m.FileCouples
 	}
 	return nil
 }
 
-func (m *CouplesResults) GetDeveloperCouples() *Couples {
+func (m *CouplesAnalysisResults) GetDeveloperCouples() *Couples {
 	if m != nil {
 		return m.DeveloperCouples
 	}
 	return nil
 }
 
-func (m *CouplesResults) GetTouchedFiles() *DeveloperTouchedFiles {
+func (m *CouplesAnalysisResults) GetTouchedFiles() *DeveloperTouchedFiles {
 	if m != nil {
 		return m.TouchedFiles
 	}
@@ -450,7 +450,7 @@ func init() {
 	proto.RegisterType((*Couples)(nil), "Couples")
 	proto.RegisterType((*TouchedFiles)(nil), "TouchedFiles")
 	proto.RegisterType((*DeveloperTouchedFiles)(nil), "DeveloperTouchedFiles")
-	proto.RegisterType((*CouplesResults)(nil), "CouplesResults")
+	proto.RegisterType((*CouplesAnalysisResults)(nil), "CouplesAnalysisResults")
 	proto.RegisterType((*UASTChange)(nil), "UASTChange")
 	proto.RegisterType((*UASTChangesSaverResults)(nil), "UASTChangesSaverResults")
 	proto.RegisterType((*AnalysisResults)(nil), "AnalysisResults")
@@ -459,55 +459,55 @@ func init() {
 func init() { proto.RegisterFile("pb/pb.proto", fileDescriptorPb) }
 
 var fileDescriptorPb = []byte{
-	// 789 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x5b, 0x8b, 0x1b, 0x37,
-	0x14, 0x66, 0x76, 0x7c, 0x3d, 0x63, 0x67, 0xb3, 0x22, 0x17, 0x77, 0x4b, 0x52, 0x77, 0x48, 0x8b,
-	0x69, 0x9a, 0x09, 0x38, 0x14, 0x4a, 0xf2, 0xd2, 0x8d, 0xdb, 0x40, 0x1e, 0xd2, 0x82, 0x76, 0xf3,
-	0x6c, 0xe4, 0x19, 0x79, 0x57, 0xed, 0x8c, 0x34, 0x48, 0x9a, 0xb5, 0xfd, 0x83, 0xfa, 0x52, 0x28,
-	0xa5, 0xf4, 0x0f, 0x16, 0xdd, 0x6c, 0x67, 0xf1, 0x2e, 0x79, 0xd3, 0x77, 0xce, 0xf7, 0x9d, 0x39,
-	0x17, 0xe9, 0x0c, 0x24, 0xf5, 0xe2, 0x65, 0xbd, 0xc8, 0x6a, 0x29, 0xb4, 0x48, 0xff, 0x8a, 0xa0,
-	0xf7, 0x81, 0x6a, 0x52, 0x10, 0x4d, 0xd0, 0x08, 0xba, 0xd7, 0x54, 0x2a, 0x26, 0xf8, 0x28, 0x1a,
-	0x47, 0x93, 0x36, 0x0e, 0xd0, 0x78, 0xf2, 0xaa, 0x28, 0x19, 0xa7, 0xa3, 0xa3, 0x71, 0x34, 0xe9,
-	0xe3, 0x00, 0xd1, 0x53, 0x00, 0x49, 0x6b, 0xa1, 0x98, 0x16, 0x72, 0x33, 0x8a, 0xad, 0x73, 0xcf,
-	0x82, 0xbe, 0x85, 0xe3, 0x05, 0xbd, 0x64, 0x7c, 0xde, 0x70, 0xb6, 0x9e, 0x6b, 0x56, 0xd1, 0x51,
-	0x6b, 0x1c, 0x4d, 0x62, 0x3c, 0xb4, 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8c, 0xd6, 0xa4, 0xc9, 0x52, 0x53, 0xe9,
+	0xaf, 0xbf, 0x9e, 0x92, 0xf9, 0xb9, 0xc1, 0xe8, 0x4b, 0x48, 0x1a, 0xa2, 0x74, 0x10, 0xb7, 0xdc,
+	0xed, 0x68, 0x42, 0x5e, 0xfd, 0x04, 0x2c, 0xf2, 0xf2, 0xb6, 0x2b, 0x6e, 0x22, 0x56, 0x9f, 0xfe,
+	0x08, 0x8f, 0xb7, 0x6d, 0xaa, 0x0b, 0x72, 0x43, 0x65, 0x98, 0xf1, 0xd7, 0xd0, 0xcd, 0x5d, 0xd8,
+	0xaf, 0x2a, 0xc9, 0xb6, 0x54, 0x1c, 0x72, 0xe9, 0x5f, 0x11, 0x1c, 0xef, 0xaf, 0xe7, 0x2b, 0xe8,
+	0x5c, 0x53, 0x52, 0x50, 0x69, 0xbd, 0x26, 0xd3, 0x7e, 0x16, 0xfe, 0x00, 0xd8, 0x27, 0xd0, 0x6b,
+	0xe8, 0xe5, 0x82, 0x6b, 0xca, 0xb5, 0xf9, 0x10, 0x4c, 0xf9, 0xa7, 0xd9, 0x5e, 0x99, 0x6c, 0xe6,
+	0x09, 0x3f, 0x73, 0x2d, 0xd7, 0x78, 0xc3, 0x3f, 0x7b, 0x03, 0xc3, 0x4f, 0x52, 0xe8, 0x01, 0xc4,
+	0xbf, 0xd3, 0xb5, 0x1f, 0xac, 0x79, 0x34, 0x27, 0xf3, 0x86, 0x94, 0x8d, 0x1b, 0xe7, 0x00, 0x3b,
+	0xf0, 0xfa, 0xe8, 0x87, 0x68, 0xd1, 0xb1, 0xbf, 0xa5, 0x57, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff,
+	0xc6, 0xe6, 0x63, 0x11, 0xa5, 0x06, 0x00, 0x00,
 }

+ 1 - 1
pb/pb.proto

@@ -67,7 +67,7 @@ message DeveloperTouchedFiles {
     repeated TouchedFiles developers = 1;
 }
 
-message CouplesResults {
+message CouplesAnalysisResults {
     Couples file_couples = 6;
     Couples developer_couples = 7;
     DeveloperTouchedFiles touched_files = 8;