Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,029 for transform2 (0.12 sec)

  1. platforms/core-configuration/base-services-groovy/src/test/groovy/org/gradle/api/internal/coerce/StringToEnumTransformerTest.groovy

        def transformer = new StringToEnumTransformer()
    
        static enum TestEnum {
            ABC, DEF
        }
    
        def "can transform enums correctly - #desc"() {
            def typesArray = types.collect { new CachedClass(it, null) } as CachedClass[]
            def argsArray = args as Object[]
    
            expect:
            transformer.transform(typesArray, argsArray).toList() == transformed
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/TransformersTest.groovy

            expect:
            asString().transform(1) == "1"
            asString().transform(null) == null
        }
    
        def "to URL"() {
            expect:
            toURL().transform(new URI("http://localhost:80/path")) == new URL("http://localhost:80/path")
        }
    
        def "by type"() {
            expect:
            type().transform("foo") == String
        }
    
        def "action as transformer"() {
            def action = Mock(Action)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/classpath/TransformedClassPathTest.groovy

    class TransformedClassPathTest extends Specification {
        def "transformed jars are returned when present"() {
            given:
            TransformedClassPath cp = transformedClassPath("original.jar": "transformed.jar")
    
            expect:
            cp.findTransformedEntryFor(file("original.jar")) == file("transformed.jar")
        }
    
        def "transformed jars are returned in the list of transformed files"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 11:14:30 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classpath/TransformedClassPath.java

            Set<File> thisClassPathFiles = ImmutableSet.copyOf(originalClassPath.getAsFiles());
            mergedTransforms.putAll(transforms);
            for (Map.Entry<File, File> appendedTransform : classPath.transforms.entrySet()) {
                // If the file is already present on this classpath, it keeps its transform (or lack thereof).
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 13:59:11 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/events/transform/TransformOperationDescriptor.java

        /**
         * Returns the subject of this transform operation.
         */
        SubjectDescriptor getSubject();
    
        /**
         * Returns the dependencies (other transforms and tasks) of this transform operation.
         */
        Set<? extends OperationDescriptor> getDependencies();
    
        /**
         * Describes the transformer of a transform operation.
         *
         * @since 5.1
         */
        interface TransformerDescriptor {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.h

    Jiyoun (Jen) Ha <******@****.***> 1708476873 -0800
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 01:08:27 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/xml/XmlTransformerTest.groovy

            Action<XmlProvider> elementAction = Mock()
            Action<XmlProvider> stringAction2 = Mock()
            transformer.addAction(stringAction)
            transformer.addAction(elementAction)
            transformer.addAction(nodeAction)
            transformer.addAction(stringAction2)
    
            when:
            def result = transformer.transform('<root/>')
    
            then:
            stringAction.execute(_) >> { XmlProvider provider ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 15 08:16:06 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/VisualCppCompilerArgsTransformerTest.groovy

            spec.optimized >> optimize
    
            expect:
            def args = transformer.transform(spec)
            args.containsAll(expected)
    
            where:
            debug | optimize | expected
            true  | false    | ["/Zi"]
            false | true     | ["/O2"]
            true  | true     | ["/Zi", "/O2"]
        }
    
        def "transforms system header and include args correctly"() {
            def spec = Stub(NativeCompileSpec)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/text/cases/cases.go

    // Transform.
    func (c Caser) Reset() { c.t.Reset() }
    
    // Transform implements the transform.Transformer interface and transforms the
    // given input to the case form implemented by c.
    func (c Caser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
    	return c.t.Transform(dst, src, atEOF)
    }
    
    // Span implements the transform.SpanningTransformer interface.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/api/internal/coerce/MethodArgumentsTransformer.java

    /**
     * Potentially transforms arguments to call a method with.
     */
    public interface MethodArgumentsTransformer {
    
        /**
         * Transforms an argument list to call a method with.
         *
         * May return {@code args} if no transform is necessary.
         */
        Object[] transform(CachedClass[] types, Object[] args);
    
        /*
         * Returns Whether the transformer can transform
         * these arguments at all.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top