Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 113 for tdmap (0.04 sec)

  1. pkg/config/model_test.go

    			input: &TestStruct{Name: "foobar"},
    			mp: map[string]any{
    				"name": "foobar",
    			},
    		},
    	}
    	for _, tt := range cases {
    		t.Run(fmt.Sprintf("%T", tt.input), func(t *testing.T) {
    			got, err := ToMap(tt.input)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if !reflect.DeepEqual(got, tt.mp) {
    				t.Fatalf("got %+v want %+v", got, tt.mp)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/FluentIterable.java

       * @since 14.0
       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
      public final <V> ImmutableMap<@NonNull E, V> toMap(Function<? super E, V> valueFunction) {
        return Maps.toMap((Iterable<@NonNull E>) getDelegate(), valueFunction);
      }
    
      /**
       * Creates an index {@code ImmutableListMultimap} that contains the results of applying a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 30 00:14:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/size.go

    	t.align = 0  // 0 means use t.Width, below
    	t.alg = AMEM // default
    	// default t.ptrBytes is 0.
    	if t.Noalg() {
    		t.setAlg(ANOALG)
    	}
    
    	et := t.Kind()
    	switch et {
    	case TFUNC, TCHAN, TMAP, TSTRING:
    		break
    
    	// SimType == 0 during bootstrap
    	default:
    		if SimType[t.Kind()] != 0 {
    			et = SimType[t.Kind()]
    		}
    	}
    
    	var w int64
    	switch et {
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. analysis/analysis-api-standalone/src/org/jetbrains/kotlin/analysis/api/standalone/StandaloneAnalysisAPISessionBuilder.kt

                    if (ktModule !is KtSourceModule) return@mapNotNull null
                    check(ktModule is KtSourceModuleImpl)
                    ktModule to ktModule.sourceRoots.filterIsInstance<PsiFile>()
                }.toMap()
            }
        }
    }
    
    /**
     * Registers services which are not covered by [FirStandaloneServiceRegistrar]. In general, this concerns services which need to be
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

        try {
          Maps.toMap((Iterable<String>) strings, Functions.constant("foo"));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testToMapWithNullValues() {
        Iterable<String> strings = ImmutableList.of("one", "two", "three");
        try {
          Maps.toMap(strings, Functions.constant(null));
          fail();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/resolver/KotlinScriptDependenciesResolverTest.kt

            ) + (
                if (GradleContextualExecuter.isEmbedded()) emptyMap() else mapOf("gradleHome" to distribution.gradleHomeDir)
                ) + entries.toMap()
    
        private
        fun resolvedScriptDependencies(
            scriptFile: File? = null,
            previousDependencies: KotlinScriptExternalDependencies? = null,
            vararg env: Pair<String, Any?>
        ) =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:12:50 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  7. analysis/analysis-api-standalone/analysis-api-fir-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/services/LLStandaloneFirElementByPsiElementChooser.kt

            }
            StandardClassIds.unsignedArrayTypeByElementType.mapTo(this) { (classId, arrayClassId) ->
                classId.asString().replace('/', '.') to arrayClassId.asString().replace('/', '.')
            }
        }.toMap()
    
        private fun FirTypeProjection.renderTypeAsKotlinType() = when (this) {
            is FirStarProjection -> "*"
            is FirTypeProjectionWithVariance -> buildString {
                append(variance.label)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 15 11:34:07 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

                        performanceTestType to (entry.value as JSONArray).map {
                            Os.valueOf((it as String).uppercase(Locale.US))
                        }.toSet()
                    }.toMap()
                    PerformanceTestGroup(testProject, coverage)
                }
                PerformanceTestConfiguration(testId, groups)
            }
        }
    }
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 19 11:22:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/model/maven/RealisedMavenModuleResolveMetadata.java

            builder.addAll(derivedVariants);
            Map<String, ModuleConfigurationMetadata> variantsByName = derivedVariants.stream().collect(Collectors.toMap(ConfigurationMetadata::getName, Function.identity()));
            for (AdditionalVariant additionalVariant : additionalVariants) {
                String name = additionalVariant.getName();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 19 19:13:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/tasks/BaseSnapshotInputsBuildOperationResult.java

            return model;
        }
    
        private static <K, V, U> Collector<Map.Entry<K, V>, ?, LinkedHashMap<K, U>> toLinkedHashMap(Function<? super V, ? extends U> valueMapper) {
            return Collectors.toMap(
                Map.Entry::getKey,
                entry -> valueMapper.apply(entry.getValue()),
                (a, b) -> b,
                LinkedHashMap::new
            );
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 11:36:42 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top