Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for WithReader (0.15 sec)

  1. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/BinaryResultBackedTestResultsProvider.java

        }
    
        @Override
        public boolean hasOutput(final long classId, final TestOutputEvent.Destination destination) {
            final boolean[] hasOutput = new boolean[1];
            withReader(new Action<TestOutputStore.Reader>() {
                @Override
                public void execute(TestOutputStore.Reader reader) {
                    hasOutput[0] = reader.hasOutput(classId, destination);
                }
            });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/InMemoryTestResultsProvider.java

            this.results = results;
        }
    
        @Override
        public boolean hasOutput(final long classId, final TestOutputEvent.Destination destination) {
            final boolean[] hasOutput = new boolean[1];
            withReader(new Action<TestOutputStore.Reader>() {
                @Override
                public void execute(TestOutputStore.Reader reader) {
                    hasOutput[0] = reader.hasOutput(classId, destination);
                }
            });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/TestOutputStoreBackedResultsProvider.java

        public TestOutputStoreBackedResultsProvider(TestOutputStore outputStore) {
            this.outputStore = outputStore;
            this.readers = new ConcurrentHashMap<Thread, TestOutputStore.Reader>();
        }
    
        protected void withReader(Action<TestOutputStore.Reader> action) {
            action.execute(getReader());
        }
    
        private TestOutputStore.Reader getReader() {
            Thread thread = Thread.currentThread();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/jvm/platform-jvm/src/test/groovy/org/gradle/api/java/archives/internal/DefaultManifestTest.groovy

            fileResolver.resolve('file') >> manifestFile
    
            when:
            manifest.writeTo('file')
            Manifest fileManifest = manifestFile.withReader { new Manifest(it) }
            Manifest expectedManifest = new Manifest()
            expectedManifest.addConfiguredAttribute(new Attribute('key1', 'value1'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/classpath/declarations/GroovyFileInterceptors.java

            @Receiver File self,
            Closure<?> closure,
            @CallerClassName String consumer
        ) throws IOException {
            Instrumented.fileOpened(self, consumer);
            return ResourceGroovyMethods.withReader(self, closure);
        }
    
        @InterceptGroovyCalls
        @InstanceMethod
        @WithExtensionReferences(toClass = ResourceGroovyMethods.class)
        public static Object intercept_withReader(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 24 15:57:56 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  6. pkg/monitoring/monitoring.go

    		otelprom.WithRegisterer(reg),
    		otelprom.WithoutCounterSuffixes(),
    	}
    
    	prom, err := otelprom.New(promOpts...)
    	if err != nil {
    		return nil, err
    	}
    
    	opts := []metric.Option{metric.WithReader(prom)}
    	opts = append(opts, knownMetrics.toHistogramViews()...)
    	mp := metric.NewMeterProvider(opts...)
    	otel.SetMeterProvider(mp)
    	handler := promhttp.HandlerFor(gatherer, promhttp.HandlerOpts{})
    	return handler, nil
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/GradleModuleMetadata.groovy

    import javax.annotation.Nullable
    
    class GradleModuleMetadata {
        private Map<String, Object> values
        private List<Variant> variants
    
        GradleModuleMetadata(TestFile file) {
            file.withReader { r ->
                JsonReader reader = new JsonReader(r)
                values = readObject(reader)
            }
            assert values.formatVersion == '1.1'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 20K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/configurationcache/ConfigurationCacheProblemsFixture.groovy

            new JsonSlurper().parseText(jsonText) as Map<String, Object>
        }
    
        private static String linesBetween(File file, String beginLine, String endLine) {
            return file.withReader('utf-8') { reader ->
                reader.lines().iterator()
                    .dropWhile { it != beginLine }
                    .drop(1)
                    .takeWhile { it != endLine }
                    .collect()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/suppliers/DynamicRevisionRemoteResolveWithMetadataSupplierIntegrationTest.groovy

                    repositoryResourceAccessor.withResource("status.txt") {
                        if (status.isEmpty()) {
                            println "Parsing status file call count: \${++calls}"
                            it.withReader { reader ->
                                reader.eachLine { line ->
                                    if (line) {
                                       def (module, st) = line.split(';')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 11:46:17 UTC 2024
    - 49K bytes
    - Viewed (0)
Back to top