File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ func TestBuildRequest(t *testing.T) {
240240 request := buildRequest (testCtx , tt .model , testClient )
241241
242242 diff := cmp .Diff (request , tt .expectedRequest ,
243- cmp .AllowUnexported (tt .expectedRequest ),
243+ cmp .AllowUnexported (tt .expectedRequest , logs. DefaultAPIService {} ),
244244 cmpopts .EquateComparable (testCtx ),
245245 )
246246 if diff != "" {
Original file line number Diff line number Diff line change @@ -327,19 +327,15 @@ func TestMap(t *testing.T) {
327327 name : "default" ,
328328 args : args [string , * string ]{
329329 input : []string {"foo" , "bar" },
330- mapFn : func (s string ) * string {
331- return Ptr (s )
332- },
330+ mapFn : Ptr [string ],
333331 },
334332 want : []* string {Ptr ("foo" ), Ptr ("bar" )},
335333 },
336334 {
337335 name : "input slice is nil" ,
338336 args : args [string , * string ]{
339337 input : nil ,
340- mapFn : func (s string ) * string {
341- return Ptr (s )
342- },
338+ mapFn : Ptr [string ],
343339 },
344340 want : []* string {},
345341 },
You can’t perform that action at this time.
0 commit comments