Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Datree
Commits
342e606c
Commit
342e606c
authored
4 years ago
by
myishay
Browse files
Options
Download
Email Patches
Plain Diff
test: remove redundant type declaration
parent
9a3f4bbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bl/evaluator_test.go
+2
-12
bl/evaluator_test.go
pkg/cliClient/cliClient_test.go
+2
-12
pkg/cliClient/cliClient_test.go
with
4 additions
and
24 deletions
+4
-24
bl/evaluator_test.go
+
2
-
12
View file @
342e606c
...
...
@@ -142,12 +142,7 @@ func test_evaluate_success() *evaluateTestCase {
evaluationRequest
:
cliClient
.
EvaluationRequest
{
Pattern
:
"*/*"
,
CliId
:
"cliId-test"
,
Metadata
:
struct
{
CliVersion
string
"json:
\"
cliVersion
\"
"
Os
string
"json:
\"
os
\"
"
PlatformVersion
string
"json:
\"
platformVersion
\"
"
KernelVersion
string
"json:
\"
kernelVersion
\"
"
}{
Metadata
:
cliClient
.
Metadata
{
CliVersion
:
"0.0.1"
,
Os
:
"darwin"
,
PlatformVersion
:
"1.2.3"
,
...
...
@@ -220,12 +215,7 @@ func test_evaluate_failedRequest() *evaluateTestCase {
evaluationRequest
:
cliClient
.
EvaluationRequest
{
Pattern
:
"*/*"
,
CliId
:
"cliId-test"
,
Metadata
:
struct
{
CliVersion
string
"json:
\"
cliVersion
\"
"
Os
string
"json:
\"
os
\"
"
PlatformVersion
string
"json:
\"
platformVersion
\"
"
KernelVersion
string
"json:
\"
kernelVersion
\"
"
}{
Metadata
:
cliClient
.
Metadata
{
CliVersion
:
"0.0.1"
,
Os
:
"darwin"
,
PlatformVersion
:
"1.2.3"
,
...
...
This diff is collapsed.
Click to expand it.
pkg/cliClient/cliClient_test.go
+
2
-
12
View file @
342e606c
...
...
@@ -121,12 +121,7 @@ func test_requestEvaluation_success() *RequestEvaluationTestCase {
CliId
:
"cli-id-test"
,
Pattern
:
"pattern"
,
Files
:
castPropertiesMock
(
"service_mock"
,
"mocks/service_mock.yaml"
),
Metadata
:
struct
{
CliVersion
string
"json:
\"
cliVersion
\"
"
Os
string
"json:
\"
os
\"
"
PlatformVersion
string
"json:
\"
platformVersion
\"
"
KernelVersion
string
"json:
\"
kernelVersion
\"
"
}{
Metadata
:
Metadata
{
CliVersion
:
"0.0.1"
,
Os
:
"darwin"
,
PlatformVersion
:
"1.2.3"
,
...
...
@@ -169,12 +164,7 @@ func test_requestEvaluation_success() *RequestEvaluationTestCase {
CliId
:
"cli-id-test"
,
Pattern
:
"pattern"
,
Files
:
castPropertiesMock
(
"service_mock"
,
"mocks/service_mock.yaml"
),
Metadata
:
struct
{
CliVersion
string
"json:
\"
cliVersion
\"
"
Os
string
"json:
\"
os
\"
"
PlatformVersion
string
"json:
\"
platformVersion
\"
"
KernelVersion
string
"json:
\"
kernelVersion
\"
"
}{
Metadata
:
Metadata
{
CliVersion
:
"0.0.1"
,
Os
:
"darwin"
,
PlatformVersion
:
"1.2.3"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help