Skip to content

Commit

Permalink
fix many references from test to old concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Oct 23, 2024
1 parent 58c2149 commit 4282386
Show file tree
Hide file tree
Showing 36 changed files with 523 additions and 507 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
A ClosedMergeRequestMetricTest is a test class for testing the behavior of ClosedMergeRequestMetric
"
Class {
#name : #ClosedMergeRequestMetricTest,
#superclass : #TestCase,
#category : #'GitLabHealth-Model-Analysis-Tests'
#name : 'ClosedMergeRequestMetricTest',
#superclass : 'TestCase',
#category : 'GitLabHealth-Model-Analysis-Tests',
#package : 'GitLabHealth-Model-Analysis-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
ClosedMergeRequestMetricTest >> testCalculate [

| result glhImporter user closedMergeRequestMetric |
Expand Down Expand Up @@ -45,7 +46,7 @@ ClosedMergeRequestMetricTest >> testCalculate [
self assert: result equals: 2
]

{ #category : #tests }
{ #category : 'tests' }
ClosedMergeRequestMetricTest >> testCalculate1MRinPeriod2Outside [

| result glhImporter user closedMergeRequestMetric |
Expand Down Expand Up @@ -88,7 +89,7 @@ ClosedMergeRequestMetricTest >> testCalculate1MRinPeriod2Outside [
self assert: result equals: 1
]

{ #category : #tests }
{ #category : 'tests' }
ClosedMergeRequestMetricTest >> testCalculate3MR [

| result glhImporter user closedMergeRequestMetric |
Expand Down Expand Up @@ -131,7 +132,7 @@ ClosedMergeRequestMetricTest >> testCalculate3MR [
self assert: result equals: 3
]

{ #category : #tests }
{ #category : 'tests' }
ClosedMergeRequestMetricTest >> testCalculate3MRClosed2Opened [

| result glhImporter user closedMergeRequestMetric |
Expand Down Expand Up @@ -184,7 +185,7 @@ ClosedMergeRequestMetricTest >> testCalculate3MRClosed2Opened [
self assert: result equals: 3
]

{ #category : #tests }
{ #category : 'tests' }
ClosedMergeRequestMetricTest >> testCalculateNoClosedMR [

| result glhImporter user closedMergeRequestMetric |
Expand Down Expand Up @@ -237,7 +238,7 @@ ClosedMergeRequestMetricTest >> testCalculateNoClosedMR [
self assert: result equals: 0
]

{ #category : #tests }
{ #category : 'tests' }
ClosedMergeRequestMetricTest >> testCalculateNoMergeRequests [

| result glhImporter user closedMergeRequestMetric |
Expand All @@ -263,7 +264,7 @@ ClosedMergeRequestMetricTest >> testCalculateNoMergeRequests [
self assert: result equals: 0
]

{ #category : #tests }
{ #category : 'tests' }
ClosedMergeRequestMetricTest >> testCalculateOutSidePeriod [

| result glhImporter user closedMergeRequestMetric |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
A ClosedTicketsMetricTest is a test class for testing the behavior of ClosedTicketsMetric
"
Class {
#name : #ClosedTicketsMetricTest,
#superclass : #TestCase,
#category : #'GitLabHealth-Model-Analysis-Tests'
#name : 'ClosedTicketsMetricTest',
#superclass : 'TestCase',
#category : 'GitLabHealth-Model-Analysis-Tests',
#package : 'GitLabHealth-Model-Analysis-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
ClosedTicketsMetricTest >> testCalculate [

| result glhImporter user closedTicket jiraImporter |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
A CodeAdditionByMRMetricTest is a test class for testing the behavior of CodeAdditionByMRMetric
"
Class {
#name : #CodeAdditionByMRMetricTest,
#superclass : #TestCase,
#category : #'GitLabHealth-Model-Analysis-Tests'
#name : 'CodeAdditionByMRMetricTest',
#superclass : 'TestCase',
#category : 'GitLabHealth-Model-Analysis-Tests',
#package : 'GitLabHealth-Model-Analysis-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
CodeAdditionByMRMetricTest >> testCalculate [

| result glhImporter user codeAddition |
Expand All @@ -18,7 +19,7 @@ CodeAdditionByMRMetricTest >> testCalculate [
{ (GLHProject new repository: GLHRepository new) }.

glhImporter := GLPHImporterMock new.
glhImporter mergeRequests: { (GLPHEMergeRequest new
glhImporter mergeRequests: { (GLHMergeRequest new
author: user;
created_at: '09-05-2024';
merged_at: '09-06-2024' asDate;
Expand Down Expand Up @@ -52,7 +53,7 @@ CodeAdditionByMRMetricTest >> testCalculate [
self assert: result equals: 10
]

{ #category : #tests }
{ #category : 'tests' }
CodeAdditionByMRMetricTest >> testCalculateNoCommits [

| result glhImporter user codeAddition |
Expand All @@ -63,7 +64,7 @@ CodeAdditionByMRMetricTest >> testCalculateNoCommits [
{ (GLHProject new repository: GLHRepository new) }.

glhImporter := GLPHImporterMock new.
glhImporter mergeRequests: { (GLPHEMergeRequest new
glhImporter mergeRequests: { (GLHMergeRequest new
author: user;
created_at: '09-05-2024';
merged_at: '09-06-2024' asDate;
Expand All @@ -82,7 +83,7 @@ CodeAdditionByMRMetricTest >> testCalculateNoCommits [
self assert: result equals: 0
]

{ #category : #tests }
{ #category : 'tests' }
CodeAdditionByMRMetricTest >> testCalculateNoMergeRequests [

| result glhImporter user codeAddition |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
A CodeAdditionByTicketMetricTest is a test class for testing the behavior of CodeAdditionByTicketMetric
"
Class {
#name : #CodeAdditionByTicketMetricTest,
#superclass : #TestCase,
#category : #'GitLabHealth-Model-Analysis-Tests'
#name : 'CodeAdditionByTicketMetricTest',
#superclass : 'TestCase',
#category : 'GitLabHealth-Model-Analysis-Tests',
#package : 'GitLabHealth-Model-Analysis-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
CodeAdditionByTicketMetricTest >> testCalculate [

| result glhImporter user jiraImporter codeAddition |
Expand All @@ -18,7 +19,7 @@ CodeAdditionByTicketMetricTest >> testCalculate [
{ (GLHProject new repository: GLHRepository new) }.

glhImporter := GLPHImporterMock new.
glhImporter mergeRequests: { (GLPHEMergeRequest new
glhImporter mergeRequests: { (GLHMergeRequest new
author: user;
created_at: '09-05-2024';
merged_at: '09-06-2024' asDate;
Expand Down Expand Up @@ -56,7 +57,7 @@ CodeAdditionByTicketMetricTest >> testCalculate [
self assert: result equals: 10
]

{ #category : #tests }
{ #category : 'tests' }
CodeAdditionByTicketMetricTest >> testCalculateNoCommits [

| result glhImporter user jiraImporter codeAddition |
Expand All @@ -67,7 +68,7 @@ CodeAdditionByTicketMetricTest >> testCalculateNoCommits [
{ (GLHProject new repository: GLHRepository new) }.

glhImporter := GLPHImporterMock new.
glhImporter mergeRequests: { (GLPHEMergeRequest new
glhImporter mergeRequests: { (GLHMergeRequest new
author: user;
created_at: '09-05-2024';
merged_at: '09-06-2024' asDate;
Expand All @@ -94,7 +95,7 @@ CodeAdditionByTicketMetricTest >> testCalculateNoCommits [
self assert: result equals: 0
]

{ #category : #tests }
{ #category : 'tests' }
CodeAdditionByTicketMetricTest >> testCalculateNoMergeRequests [

| result glhImporter user jiraImporter codeAddition |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
A CodeAdditionMetricTest is a test class for testing the behavior of CodeAdditionMetric
"
Class {
#name : #CodeAdditionMetricTest,
#superclass : #TestCase,
#category : #'GitLabHealth-Model-Analysis-Tests'
#name : 'CodeAdditionMetricTest',
#superclass : 'TestCase',
#category : 'GitLabHealth-Model-Analysis-Tests',
#package : 'GitLabHealth-Model-Analysis-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
CodeAdditionMetricTest >> testCalculate [

| user glhImporter codeAddition result |
Expand Down Expand Up @@ -44,7 +45,7 @@ CodeAdditionMetricTest >> testCalculate [
self assert: result equals: 10
]

{ #category : #tests }
{ #category : 'tests' }
CodeAdditionMetricTest >> testCalculateNoCommits [

| user glhImporter codeAddition result |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
A CodeDeletionByMRMetricTest is a test class for testing the behavior of CodeDeletionByMRMetric
"
Class {
#name : #CodeDeletionByMRMetricTest,
#superclass : #TestCase,
#category : #'GitLabHealth-Model-Analysis-Tests'
#name : 'CodeDeletionByMRMetricTest',
#superclass : 'TestCase',
#category : 'GitLabHealth-Model-Analysis-Tests',
#package : 'GitLabHealth-Model-Analysis-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
CodeDeletionByMRMetricTest >> testCalculate [

| result glhImporter user codeDeletion |
Expand All @@ -18,7 +19,7 @@ CodeDeletionByMRMetricTest >> testCalculate [
{ (GLHProject new repository: GLHRepository new) }.

glhImporter := GLPHImporterMock new.
glhImporter mergeRequests: { (GLPHEMergeRequest new
glhImporter mergeRequests: { (GLHMergeRequest new
author: user;
created_at: '09-05-2024';
merged_at: '09-06-2024' asDate;
Expand Down Expand Up @@ -51,7 +52,7 @@ CodeDeletionByMRMetricTest >> testCalculate [
self assert: result equals: 10
]

{ #category : #tests }
{ #category : 'tests' }
CodeDeletionByMRMetricTest >> testCalculateNoCommits [

| result glhImporter user codeDeletion |
Expand All @@ -62,7 +63,7 @@ CodeDeletionByMRMetricTest >> testCalculateNoCommits [
{ (GLHProject new repository: GLHRepository new) }.

glhImporter := GLPHImporterMock new.
glhImporter mergeRequests: { (GLPHEMergeRequest new
glhImporter mergeRequests: { (GLHMergeRequest new
author: user;
created_at: '09-05-2024';
merged_at: '09-06-2024' asDate;
Expand All @@ -81,7 +82,7 @@ CodeDeletionByMRMetricTest >> testCalculateNoCommits [
self assert: result equals: 0
]

{ #category : #tests }
{ #category : 'tests' }
CodeDeletionByMRMetricTest >> testCalculateNoMergeRequests [

| result glhImporter user codeDeletion |
Expand All @@ -92,7 +93,7 @@ CodeDeletionByMRMetricTest >> testCalculateNoMergeRequests [
{ (GLHProject new repository: GLHRepository new) }.

glhImporter := GLPHImporterMock new.
glhImporter mergeRequests: { (GLPHEMergeRequest new
glhImporter mergeRequests: { (GLHMergeRequest new
author: user;
created_at: '09-05-2024';
merged_at: '09-06-2024' asDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
A CodeDeletionByTicketMetricTest is a test class for testing the behavior of CodeDeletionByTicketMetric
"
Class {
#name : #CodeDeletionByTicketMetricTest,
#superclass : #TestCase,
#category : #'GitLabHealth-Model-Analysis-Tests'
#name : 'CodeDeletionByTicketMetricTest',
#superclass : 'TestCase',
#category : 'GitLabHealth-Model-Analysis-Tests',
#package : 'GitLabHealth-Model-Analysis-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
CodeDeletionByTicketMetricTest >> testCalculate [

| result glhImporter user jiraImporter codeAddition |
Expand All @@ -18,7 +19,7 @@ CodeDeletionByTicketMetricTest >> testCalculate [
{ (GLHProject new repository: GLHRepository new) }.

glhImporter := GLPHImporterMock new.
glhImporter mergeRequests: { (GLPHEMergeRequest new
glhImporter mergeRequests: { (GLHMergeRequest new
author: user;
created_at: '09-05-2024';
merged_at: '09-06-2024' asDate;
Expand Down Expand Up @@ -58,7 +59,7 @@ CodeDeletionByTicketMetricTest >> testCalculate [
self assert: result equals: 10
]

{ #category : #tests }
{ #category : 'tests' }
CodeDeletionByTicketMetricTest >> testCalculateNoCommits [

| result glhImporter user jiraImporter codeAddition |
Expand All @@ -69,7 +70,7 @@ CodeDeletionByTicketMetricTest >> testCalculateNoCommits [
{ (GLHProject new repository: GLHRepository new) }.

glhImporter := GLPHImporterMock new.
glhImporter mergeRequests: { (GLPHEMergeRequest new
glhImporter mergeRequests: { (GLHMergeRequest new
author: user;
created_at: '09-05-2024';
merged_at: '09-06-2024' asDate;
Expand All @@ -95,7 +96,7 @@ CodeDeletionByTicketMetricTest >> testCalculateNoCommits [
self assert: result equals: 0
]

{ #category : #tests }
{ #category : 'tests' }
CodeDeletionByTicketMetricTest >> testCalculateNoMergeRequests [

| result glhImporter user jiraImporter codeAddition |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
A CodeDeletionMetricTest is a test class for testing the behavior of CodeDeletionMetric
"
Class {
#name : #CodeDeletionMetricTest,
#superclass : #TestCase,
#category : #'GitLabHealth-Model-Analysis-Tests'
#name : 'CodeDeletionMetricTest',
#superclass : 'TestCase',
#category : 'GitLabHealth-Model-Analysis-Tests',
#package : 'GitLabHealth-Model-Analysis-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
CodeDeletionMetricTest >> testCalculate [

| user glhImporter result codeDeletion |
Expand Down Expand Up @@ -44,7 +45,7 @@ CodeDeletionMetricTest >> testCalculate [
self assert: result equals: 10
]

{ #category : #tests }
{ #category : 'tests' }
CodeDeletionMetricTest >> testCalculateNoCommits [

| user glhImporter result codeDeletion |
Expand Down
Loading

0 comments on commit 4282386

Please sign in to comment.