@@ -35,101 +35,101 @@ trait BaseSpec extends AnyFlatSpec with Matchers with TestData with MockFactory
3535
3636 class HttpClientTest extends HttpClient [IO ](Duration (1000 , TimeUnit .MILLISECONDS ))
3737
38- def httpClientMockGet [Res ](
38+ def httpClientMockGet [Out ](
3939 url : String ,
4040 params : Map [String , String ] = Map .empty,
4141 headers : Map [String , String ] = Map .empty,
42- response : IO [GHResponse [Res ]]
42+ response : IO [GHResponse [Out ]]
4343 ): HttpClient [IO ] = {
4444 val httpClientMock = mock[HttpClientTest ]
4545 (httpClientMock
46- .get[Res ](
46+ .get[Out ](
4747 _ : Option [String ],
4848 _ : String ,
4949 _ : Map [String , String ],
5050 _ : Map [String , String ],
5151 _ : Option [Pagination ]
52- )(_ : Decoder [Res ]))
52+ )(_ : Decoder [Out ]))
5353 .expects(sampleToken, url, headers ++ headerUserAgent, params, * , * )
5454 .returns(response)
5555 httpClientMock
5656 }
5757
58- def httpClientMockPost [Req , Res ](
58+ def httpClientMockPost [In , Out ](
5959 url : String ,
60- req : Req ,
61- response : IO [GHResponse [Res ]]
60+ req : In ,
61+ response : IO [GHResponse [Out ]]
6262 ): HttpClient [IO ] = {
6363 val httpClientMock = mock[HttpClientTest ]
6464 (httpClientMock
65- .post[Req , Res ](_ : Option [String ], _ : String , _ : Map [String , String ], _ : Req )(
66- _ : Encoder [Req ],
67- _ : Decoder [Res ]
65+ .post[In , Out ](_ : Option [String ], _ : String , _ : Map [String , String ], _ : In )(
66+ _ : Encoder [In ],
67+ _ : Decoder [Out ]
6868 ))
6969 .expects(sampleToken, url, headerUserAgent, req, * , * )
7070 .returns(response)
7171 httpClientMock
7272 }
7373
74- def httpClientMockPostAuth [Req , Res ](
74+ def httpClientMockPostAuth [In , Out ](
7575 url : String ,
7676 headers : Map [String , String ],
77- req : Req ,
78- response : IO [GHResponse [Res ]]
77+ req : In ,
78+ response : IO [GHResponse [Out ]]
7979 ): HttpClient [IO ] = {
8080 val httpClientMock = mock[HttpClientTest ]
8181 (httpClientMock
82- .postAuth[Req , Res ](_ : String , _ : Map [String , String ], _ : Req )(
83- _ : Encoder [Req ],
84- _ : Decoder [Res ]
82+ .postAuth[In , Out ](_ : String , _ : Map [String , String ], _ : In )(
83+ _ : Encoder [In ],
84+ _ : Decoder [Out ]
8585 ))
8686 .expects(url, headers ++ headerUserAgent, req, * , * )
8787 .returns(response)
8888 httpClientMock
8989 }
9090
91- def httpClientMockPostOAuth [Req , Res ](
91+ def httpClientMockPostOAuth [In , Out ](
9292 url : String ,
93- req : Req ,
94- response : IO [GHResponse [Res ]]
93+ req : In ,
94+ response : IO [GHResponse [Out ]]
9595 ): HttpClient [IO ] = {
9696 val httpClientMock = mock[HttpClientTest ]
9797 (httpClientMock
98- .postOAuth[Req , Res ](_ : String , _ : Map [String , String ], _ : Req )(
99- _ : Encoder [Req ],
100- _ : Decoder [Res ]
98+ .postOAuth[In , Out ](_ : String , _ : Map [String , String ], _ : In )(
99+ _ : Encoder [In ],
100+ _ : Decoder [Out ]
101101 ))
102102 .expects(url, headerUserAgent, req, * , * )
103103 .returns(response)
104104 httpClientMock
105105 }
106106
107- def httpClientMockPatch [Req , Res ](
107+ def httpClientMockPatch [In , Out ](
108108 url : String ,
109- req : Req ,
110- response : IO [GHResponse [Res ]]
109+ req : In ,
110+ response : IO [GHResponse [Out ]]
111111 ): HttpClient [IO ] = {
112112 val httpClientMock = mock[HttpClientTest ]
113113 (httpClientMock
114- .patch[Req , Res ](_ : Option [String ], _ : String , _ : Map [String , String ], _ : Req )(
115- _ : Encoder [Req ],
116- _ : Decoder [Res ]
114+ .patch[In , Out ](_ : Option [String ], _ : String , _ : Map [String , String ], _ : In )(
115+ _ : Encoder [In ],
116+ _ : Decoder [Out ]
117117 ))
118118 .expects(sampleToken, url, headerUserAgent, req, * , * )
119119 .returns(response)
120120 httpClientMock
121121 }
122122
123- def httpClientMockPut [Req , Res ](
123+ def httpClientMockPut [In , Out ](
124124 url : String ,
125- req : Req ,
126- response : IO [GHResponse [Res ]]
125+ req : In ,
126+ response : IO [GHResponse [Out ]]
127127 ): HttpClient [IO ] = {
128128 val httpClientMock = mock[HttpClientTest ]
129129 (httpClientMock
130- .put[Req , Res ](_ : Option [String ], _ : String , _ : Map [String , String ], _ : Req )(
131- _ : Encoder [Req ],
132- _ : Decoder [Res ]
130+ .put[In , Out ](_ : Option [String ], _ : String , _ : Map [String , String ], _ : In )(
131+ _ : Encoder [In ],
132+ _ : Decoder [Out ]
133133 ))
134134 .expects(sampleToken, url, headerUserAgent, req, * , * )
135135 .returns(response)
@@ -145,14 +145,14 @@ trait BaseSpec extends AnyFlatSpec with Matchers with TestData with MockFactory
145145 httpClientMock
146146 }
147147
148- def httpClientMockDeleteWithResponse [Res ](
148+ def httpClientMockDeleteWithResponse [Out ](
149149 url : String ,
150- response : IO [GHResponse [Res ]]
150+ response : IO [GHResponse [Out ]]
151151 ): HttpClient [IO ] = {
152152 val httpClientMock = mock[HttpClientTest ]
153153 (httpClientMock
154- .deleteWithResponse[Res ](_ : Option [String ], _ : String , _ : Map [String , String ])(
155- _ : Decoder [Res ]
154+ .deleteWithResponse[Out ](_ : Option [String ], _ : String , _ : Map [String , String ])(
155+ _ : Decoder [Out ]
156156 ))
157157 .expects(sampleToken, url, headerUserAgent, * )
158158 .returns(response)
0 commit comments