- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 2,677 for map1 (0.05 sec)
-
src/cmd/compile/internal/types2/api.go
// // Invariant: Defs[id] == nil || Defs[id].Pos() == id.Pos() Defs map[*syntax.Name]Object // Uses maps identifiers to the objects they denote. // // For an embedded field, Uses returns the *TypeName it denotes. // // Invariant: Uses[id].Pos() != id.Pos() Uses map[*syntax.Name]Object // Implicits maps nodes to their implicitly declared objects, if any.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:48:53 UTC 2024 - 17.4K bytes - Viewed (0) -
test/gcgort.go
for j := 0; j < len(a); j++ { a[j] = !a[j] runtime.Gosched() } } }, mapT: func() { a := make(map[bool]bool) for i := 0; i < mods; i++ { a[false] = !a[false] a[true] = !a[true] runtime.Gosched() } }, mapPointerKeyT: func() { a := make(map[*bool]bool) for i := 0; i < length; i++ { a[new(bool)] = false runtime.Gosched() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 08 21:15:48 UTC 2018 - 34.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingMap.java
} /** * A sensible definition of {@link #putAll(Map)} in terms of {@link #put(Object, Object)}. If you * override {@link #put(Object, Object)}, you may wish to override {@link #putAll(Map)} to forward * to this implementation. * * @since 7.0 */ protected void standardPutAll(Map<? extends K, ? extends V> map) { Maps.putAllImpl(this, map); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 9.9K bytes - Viewed (0) -
src/cmd/go/internal/test/flagdefs_test.go
import ( "cmd/go/internal/cfg" "cmd/go/internal/test/internal/genflags" "internal/testenv" "maps" "os" "testing" ) func TestMain(m *testing.M) { cfg.SetGOROOT(testenv.GOROOT(nil), false) os.Exit(m.Run()) } func TestPassFlagToTest(t *testing.T) { wantNames := genflags.ShortTestFlags() missing := map[string]bool{} for _, name := range wantNames { if !passFlagToTest[name] { missing[name] = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 09 13:37:58 UTC 2023 - 1.6K bytes - Viewed (0) -
schema/naming_test.go
} ns := NamingStrategy{} for key, value := range maps { if ns.toDBName(key) != value { t.Errorf("%v toName should equal %v, but got %v", key, value, ns.toDBName(key)) } } maps = map[string]string{ "x": "X", "user_restrictions": "UserRestriction",
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue May 30 02:00:48 UTC 2023 - 7K bytes - Viewed (0) -
src/unique/handle_test.go
// Manually load the value out of the map. typ := abi.TypeOf(value) a, ok := uniqueMaps.Load(typ) if !ok { return } m := a.(*uniqueMap[T]) wp, ok := m.Load(value) if !ok { return } if wp.Strong() != nil { t.Errorf("value %v still referenced a handle (or tiny block?) ", value) return } t.Errorf("failed to drain internal maps of %v", value)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:14:07 UTC 2024 - 2.5K bytes - Viewed (0) -
pkg/kube/inject/template.go
dict[key] = v[i+1] } return dict } // Merge maps merges multiple maps. Latter maps take precedence over previous maps on overlapping fields func mergeMaps(maps ...map[string]string) map[string]string { if len(maps) == 0 { return nil } res := make(map[string]string, len(maps[0])) for _, m := range maps { for k, v := range m { res[k] = v } } return res
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 16 02:12:03 UTC 2023 - 9.9K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue50755.go
// during function argument type inference. // M2's constraint is unnamed. func f1[K1 comparable, E1 any](m1 map[K1]E1) {} func f2[M2 map[string]int](m2 M2) { f1(m2) } // The core type of M3 unifies with the type of m1 // during function argument type inference. // M3's constraint is named. type Map3 map[string]int func f3[M3 Map3](m3 M3) { f1(m3) } // The core type of M5 unifies with the core type of M4
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 1K bytes - Viewed (0) -
platforms/jvm/language-java/src/test/groovy/org/gradle/external/javadoc/internal/GroupsJavadocOptionFileOptionTest.groovy
import com.google.common.collect.Maps import spock.lang.Specification class GroupsJavadocOptionFileOptionTest extends Specification { private JavadocOptionFileWriterContext writerContextMock = Mock() private final String optionName = "testOption" private GroupsJavadocOptionFileOption groupsFile = new GroupsJavadocOptionFileOption(optionName, Maps.<String, List<String>>newLinkedHashMap())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 1.9K bytes - Viewed (0) -
test/fixedbugs/issue21687.go
x = two return 0 }() return one[0], two[0] } func maps() (int, int) { one := map[int]int{0: 1} two := map[int]int{0: 2} x := one x[0] += func() int { x = two return 0 }() return one[0], two[0] } var tests = [...]func() (int, int){ ptrs, slices, maps, } func main() { bad := 0 for i, f := range tests { if a, b := f(); a+b != 3 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 18:10:17 UTC 2017 - 940 bytes - Viewed (0)