Debian Codegraph @

td/t_anchor_118.go

raw symbols SCIP
1 // Copyright (c) 2023, Maxime Soulé
2 // All rights reserved.
3 //
4 // This source code is licensed under the BSD-style license found in the
5 // LICENSE file in the root directory of this source tree.
6
7 //go:build go1.18
8 // +build go1.18
9
10 package tdscip-go gomod github.com/maxatome/go-testdeep . `github.com/maxatome/go-testdeep/td`/
11
12 // Anchor is a generic shortcut to [T.Anchor].
13 func Anchorscip-go gomod github.com/maxatome/go-testdeep . `github.com/maxatome/go-testdeep/td`/Anchor().[X any](t *Tscip-go gomod github.com/maxatome/go-testdeep . `github.com/maxatome/go-testdeep/td`/T#, operator TestDeepscip-go gomod github.com/maxatome/go-testdeep . `github.com/maxatome/go-testdeep/td`/TestDeep#) X {
14 var model X
15 return t.Anchorscip-go gomod github.com/maxatome/go-testdeep . `github.com/maxatome/go-testdeep/td`/T#Anchor().(operator, model).(X)
16 }
17
18 // A is a generic shortcut to [T.A].
19 func Ascip-go gomod github.com/maxatome/go-testdeep . `github.com/maxatome/go-testdeep/td`/A().[X any](t *Tscip-go gomod github.com/maxatome/go-testdeep . `github.com/maxatome/go-testdeep/td`/T#, operator TestDeepscip-go gomod github.com/maxatome/go-testdeep . `github.com/maxatome/go-testdeep/td`/TestDeep#) X {
20 var model X
21 return t.Ascip-go gomod github.com/maxatome/go-testdeep . `github.com/maxatome/go-testdeep/td`/T#A().(operator, model).(X)
22 }