-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev'
- Loading branch information
Showing
8 changed files
with
137 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package core | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestDefinitionsRepository(t *testing.T) { | ||
// create a new repository | ||
repo := NewDefinitions() | ||
t.Logf("result of repo is %v", repo) | ||
// check if the repository is not nil | ||
if repo == nil { | ||
t.Errorf("expected a repository, got nil") | ||
} | ||
} | ||
|
||
func TestDefinitionsRepositoryID(t *testing.T) { | ||
// create a new repository | ||
repo := NewDefinitions() | ||
repo.SetID("definitions", "1234") | ||
repo.SetCollaboration() | ||
repo.SetProcess(0) | ||
t.Logf("result of repo is %v", repo) | ||
// check if the repository has the correct id | ||
if *repo.GetID() != "Definitions_1234" { | ||
t.Errorf("expected a correct id, got something else") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.