- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 218 for S1 (0.1 sec)
-
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/AbstractStringVersionSelectorTest.groovy
def accept(String s1, String s2) { return getSelector(s1).accept(s2) } def accept(String s1, ComponentMetadata cmd) { return getSelector(s1).accept(cmd) } def isDynamic(String s1) { return getSelector(s1).isDynamic() } def requiresMetadata(String s1) { return getSelector(s1).requiresMetadata() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testgodefs/testdata/fieldtypedef.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ignore package main /* struct S1 { int f1; }; struct S2 { struct S1 s1; }; typedef struct S1 S1Type; typedef struct S2 S2Type; */ import "C" type S1 C.S1Type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 15 21:57:36 UTC 2023 - 349 bytes - Viewed (0) -
src/debug/gosym/symtab_test.go
} } func TestStandardLibPackage(t *testing.T) { s1 := Sym{Name: "io.(*LimitedReader).Read"} s2 := Sym{Name: "io.NewSectionReader"} assertString(t, fmt.Sprintf("package of %q", s1.Name), s1.PackageName(), "io") assertString(t, fmt.Sprintf("package of %q", s2.Name), s2.PackageName(), "io") assertString(t, fmt.Sprintf("receiver of %q", s1.Name), s1.ReceiverName(), "(*LimitedReader)")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 09 11:28:56 UTC 2022 - 4.3K bytes - Viewed (0) -
src/go/doc/doc_test.go
} } const funcsTestFile = ` package funcs func F() {} type S1 struct { S2 // embedded, exported s3 // embedded, unexported } func NewS1() S1 {return S1{} } func NewS1p() *S1 { return &S1{} } func (S1) M1() {} func (r S1) M2() {} func(S1) m3() {} // unexported not shown func (*S1) P1() {} // pointer receiver type S2 int func (S2) M3() {} // shown on S2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:52 UTC 2022 - 6.7K bytes - Viewed (0) -
src/runtime/race/testdata/comp_test.go
) type P struct { x, y int } type S struct { s1, s2 P } func TestNoRaceComp(t *testing.T) { c := make(chan bool, 1) var s S go func() { s.s2.x = 1 c <- true }() s.s2.y = 2 <-c } func TestNoRaceComp2(t *testing.T) { c := make(chan bool, 1) var s S go func() { s.s1.x = 1 c <- true }() s.s1.y = 2 <-c } func TestRaceComp(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 2.3K bytes - Viewed (0) -
pkg/util/sets/set_test.go
{New(elements2...), New(elements...)}, } { s1, s2 := sets[0], sets[1] if got := s1.Union(s2); !got.Equals(want) { t.Errorf("expected %v; got %v", want, got) } } } func TestDifference(t *testing.T) { s1 := New("a", "b", "c", "d") s2 := New("a", "b", "e") want := New("c", "d") t.Run("difference", func(t *testing.T) { d := s1.Difference(s2) if !want.Equals(d) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 05:26:03 UTC 2024 - 7.9K bytes - Viewed (0) -
test/ken/simpconv.go
// license that can be found in the LICENSE file. // Test simple arithmetic conversion. package main type vlong int64 type short int16 func main() { s1 := vlong(0) for i := short(0); i < 10; i = i + 1 { s1 = s1 + vlong(i) } if s1 != 45 { panic(s1) } s2 := float64(0) for i := 0; i < 10; i = i + 1 { s2 = s2 + float64(i) } if s2 != 45 { panic(s2) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 490 bytes - Viewed (0) -
test/typeparam/sliceimp.dir/main.go
} func TestEqual() { s1 := []int{1, 2, 3} if !a.Equal(s1, s1) { panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", s1, s1)) } s2 := []int{1, 2, 3} if !a.Equal(s1, s2) { panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", s1, s2)) } s2 = append(s2, 4) if a.Equal(s1, s2) { panic(fmt.Sprintf("a.Equal(%v, %v) = true, want false", s1, s2)) } s3 := []float64{1, 2, math.NaN()}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 4.6K bytes - Viewed (0) -
src/internal/types/testdata/check/init0.go
a3 = b3 b3 /* ERROR "initialization cycle for b3" */ int = c3 c3 = d3 d3 = b3 ) // cycles via struct fields type S1 struct { f int } const cx3 S1 /* ERROR "invalid constant type" */ = S1{cx3.f} var vx3 /* ERROR "initialization cycle: vx3 refers to itself" */ S1 = S1{vx3.f} // cycles via functions var x4 = x5 var x5 /* ERROR "initialization cycle for x5" */ = f1() func f1() int { return x5*10 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 2.2K bytes - Viewed (0) -
test/fixedbugs/bug475.go
// license that can be found in the LICENSE file. // Variable in enclosing function with same name as field in struct // composite literal confused gccgo. package p type s1 struct { f *s1 } func F() { var f *s1 _ = func() { _ = s1{f: nil} } _ = f
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 381 bytes - Viewed (0)