- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,677 for map1 (0.2 sec)
-
src/internal/types/testdata/check/map1.go
// license that can be found in the LICENSE file. // This file is like map.go2, but instead if importing chans, it contains // the necessary functionality at the end of the file. // Package orderedmap provides an ordered map, implemented as a binary tree. package orderedmap // Map is an ordered map. type Map[K, V any] struct { root *node[K, V] compare func(K, K) int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 3.4K bytes - Viewed (0) -
test/map1.go
_ map[bool]v _ map[string]v _ map[chan int]v _ map[*int]v _ map[struct{}]v _ map[[10]int]v // invalid _ map[[]int]v // ERROR "invalid map key" _ map[func()]v // ERROR "invalid map key" _ map[map[int]int]v // ERROR "invalid map key" _ map[T1]v // ERROR "invalid map key" _ map[T2]v // ERROR "invalid map key" _ map[T3]v // ERROR "invalid map key" _ map[T4]v // ERROR "invalid map key" _ map[T5]v
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 14 20:13:36 UTC 2020 - 1.5K bytes - Viewed (0) -
src/runtime/pprof/proto_test.go
// Fake mapping - HasFunctions will be true because two PCs from Go // will be fully symbolized. fake := &profile.Mapping{ID: 1, HasFunctions: true} map1, map2 = fake, fake } return } func TestConvertCPUProfile(t *testing.T) { addr1, addr2, map1, map2 := testPCs(t) b := []uint64{ 3, 0, 500, // hz = 500 5, 0, 10, uint64(addr1 + 1), uint64(addr1 + 2), // 10 samples in addr1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 23:21:53 UTC 2024 - 17K bytes - Viewed (0) -
test/escape_map.go
m[&i] = &j return m[&i] } func map2() map[*int]*int { m := make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) escapes to heap" i := 0 // ERROR "moved to heap: i" j := 0 // ERROR "moved to heap: j" m[&i] = &j return m } func map3() []*int { m := make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) does not escape"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 12 08:31:49 UTC 2020 - 2.8K bytes - Viewed (0) -
src/runtime/pprof/protomem_test.go
Location: []*profile.Location{ {ID: 1, Mapping: map1, Address: addr1}, {ID: 2, Mapping: map2, Address: addr2}, }, NumLabel: map[string][]int64{"bytes": {1024}}, }, { Value: []int64{1, 829411, 1, 829411}, Location: []*profile.Location{ {ID: 3, Mapping: map2, Address: addr2 + 1}, {ID: 4, Mapping: map2, Address: addr2 + 2}, }, NumLabel: map[string][]int64{"bytes": {512 * 1024}}, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:45 UTC 2024 - 6.7K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/util/TestTask.groovy
class TestTask extends ConventionTask { @Internal TestTask self @Internal String customProp @Internal List list1 @Internal List list2 @Internal Map map1
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 26 10:58:32 UTC 2023 - 922 bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
TreeMap<Integer, Integer> map = Maps.newTreeMap(SOME_COMPARATOR); assertEquals(Collections.emptyMap(), map); assertSame(SOME_COMPARATOR, map.comparator()); } public void testTreeMapWithInitialMap() { SortedMap<Integer, Integer> map = Maps.newTreeMap(); map.put(5, 10); map.put(3, 20); map.put(1, 30); TreeMap<Integer, Integer> copy = Maps.newTreeMap(map); assertEquals(copy, map);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 15:27:58 UTC 2024 - 67.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ConventionAwareHelperTest.java
conventionAware.map("list1", new Callable<Object>() { public Object call() { return toList("a"); } }); assertThat(conventionAware.getConventionValue(emptyList(), "list1", false), equalTo((Object) toList("a"))); } @Test public void usesConventionValueForEmptyMap() { conventionAware.map("map1", new Callable<Object>() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy
} def "creates snapshot for map from candidate"() { def map1 = [:] map1.put(new Bean(prop: "value"), new Bean(prop: "value")) def map2 = [:] map2.put(new Bean(prop: "value"), new Bean(prop: "value2")) def map3 = [:] map3.putAll(map1) map3.put(new Bean(prop: "value2"), new Bean(prop: "value2")) expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 29.5K bytes - Viewed (0) -
src/mdo/java/ImmutableCollections.java
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Jan 22 17:27:48 UTC 2024 - 16.7K bytes - Viewed (0)