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
小 白蛋
Mizu
Commits
885b63b1
Unverified
Commit
885b63b1
authored
3 years ago
by
M. Mert Yildiran
Browse files
Options
Download
Email Patches
Plain Diff
Fix the mocks in the unit tests
parent
b3775ce9
fix/req-res-matcher
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tap/extensions/amqp/tcp_stream_mock_test.go
+3
-3
tap/extensions/amqp/tcp_stream_mock_test.go
tap/extensions/http/tcp_stream_mock_test.go
+3
-3
tap/extensions/http/tcp_stream_mock_test.go
tap/extensions/kafka/tcp_stream_mock_test.go
+3
-3
tap/extensions/kafka/tcp_stream_mock_test.go
tap/extensions/redis/tcp_stream_mock_test.go
+3
-3
tap/extensions/redis/tcp_stream_mock_test.go
with
12 additions
and
12 deletions
+12
-12
tap/extensions/amqp/tcp_stream_mock_test.go
+
3
-
3
View file @
885b63b1
...
...
@@ -11,7 +11,7 @@ type tcpStream struct {
protoIdentifier
*
api
.
ProtoIdentifier
isTapTarget
bool
origin
api
.
Capture
reqResMatcher
api
.
RequestResponseMatcher
reqResMatcher
s
[]
api
.
RequestResponseMatcher
sync
.
Mutex
}
...
...
@@ -32,8 +32,8 @@ func (t *tcpStream) GetProtoIdentifier() *api.ProtoIdentifier {
return
t
.
protoIdentifier
}
func
(
t
*
tcpStream
)
GetReqResMatcher
()
api
.
RequestResponseMatcher
{
return
t
.
reqResMatcher
func
(
t
*
tcpStream
)
GetReqResMatcher
s
()
[]
api
.
RequestResponseMatcher
{
return
t
.
reqResMatcher
s
}
func
(
t
*
tcpStream
)
GetIsTapTarget
()
bool
{
...
...
This diff is collapsed.
Click to expand it.
tap/extensions/http/tcp_stream_mock_test.go
+
3
-
3
View file @
885b63b1
...
...
@@ -11,7 +11,7 @@ type tcpStream struct {
protoIdentifier
*
api
.
ProtoIdentifier
isTapTarget
bool
origin
api
.
Capture
reqResMatcher
api
.
RequestResponseMatcher
reqResMatcher
s
[]
api
.
RequestResponseMatcher
sync
.
Mutex
}
...
...
@@ -32,8 +32,8 @@ func (t *tcpStream) GetProtoIdentifier() *api.ProtoIdentifier {
return
t
.
protoIdentifier
}
func
(
t
*
tcpStream
)
GetReqResMatcher
()
api
.
RequestResponseMatcher
{
return
t
.
reqResMatcher
func
(
t
*
tcpStream
)
GetReqResMatcher
s
()
[]
api
.
RequestResponseMatcher
{
return
t
.
reqResMatcher
s
}
func
(
t
*
tcpStream
)
GetIsTapTarget
()
bool
{
...
...
This diff is collapsed.
Click to expand it.
tap/extensions/kafka/tcp_stream_mock_test.go
+
3
-
3
View file @
885b63b1
...
...
@@ -11,7 +11,7 @@ type tcpStream struct {
protoIdentifier
*
api
.
ProtoIdentifier
isTapTarget
bool
origin
api
.
Capture
reqResMatcher
api
.
RequestResponseMatcher
reqResMatcher
s
[]
api
.
RequestResponseMatcher
sync
.
Mutex
}
...
...
@@ -32,8 +32,8 @@ func (t *tcpStream) GetProtoIdentifier() *api.ProtoIdentifier {
return
t
.
protoIdentifier
}
func
(
t
*
tcpStream
)
GetReqResMatcher
()
api
.
RequestResponseMatcher
{
return
t
.
reqResMatcher
func
(
t
*
tcpStream
)
GetReqResMatcher
s
()
[]
api
.
RequestResponseMatcher
{
return
t
.
reqResMatcher
s
}
func
(
t
*
tcpStream
)
GetIsTapTarget
()
bool
{
...
...
This diff is collapsed.
Click to expand it.
tap/extensions/redis/tcp_stream_mock_test.go
+
3
-
3
View file @
885b63b1
...
...
@@ -11,7 +11,7 @@ type tcpStream struct {
protoIdentifier
*
api
.
ProtoIdentifier
isTapTarget
bool
origin
api
.
Capture
reqResMatcher
api
.
RequestResponseMatcher
reqResMatcher
s
[]
api
.
RequestResponseMatcher
sync
.
Mutex
}
...
...
@@ -32,8 +32,8 @@ func (t *tcpStream) GetProtoIdentifier() *api.ProtoIdentifier {
return
t
.
protoIdentifier
}
func
(
t
*
tcpStream
)
GetReqResMatcher
()
api
.
RequestResponseMatcher
{
return
t
.
reqResMatcher
func
(
t
*
tcpStream
)
GetReqResMatcher
s
()
[]
api
.
RequestResponseMatcher
{
return
t
.
reqResMatcher
s
}
func
(
t
*
tcpStream
)
GetIsTapTarget
()
bool
{
...
...
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