Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 3,304 for gwrite (0.27 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/splice_test.go

    		},
    		{
    			name: "Write/Splice, Reset, Write/Splice",
    			run: func(sb runtime.Splice, buf *bytes.Buffer) {
    				sb.Splice(testBytes0)
    				buf.Write(testBytes0)
    
    				sb.Reset()
    				buf.Reset()
    
    				sb.Splice(testBytes1)
    				buf.Write(testBytes1)
    			},
    		},
    		{
    			name: "Write, Reset, Splice",
    			run: func(sb runtime.Splice, buf *bytes.Buffer) {
    				sb.Write(testBytes0)
    				buf.Write(testBytes0)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 18:03:48 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/cmd/dist/testjson_test.go

    			const b1 = 5
    			const b2 = len(in) - 5
    			f.Write([]byte(in[:b1]))
    			f.Write([]byte(in[b1:b2]))
    			f.Write([]byte(in[b2:]))
    		})
    	})
    }
    
    func checkJSONFilter(t *testing.T, in, want string) {
    	t.Helper()
    	checkJSONFilterWith(t, want, func(f *testJSONFilter) {
    		f.Write([]byte(in))
    	})
    }
    
    func checkJSONFilterWith(t *testing.T, want string, write func(*testJSONFilter)) {
    	t.Helper()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 20:13:24 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/outputorigin/BuildCacheOutputOriginIntegrationTest.groovy

            then:
            skipped ":write"
            with(origin(":write")) {
                buildInvocationId == thirdBuildId
                buildCacheKey == thirdBuildCacheKey
            }
    
            when:
            succeeds  "write"
    
            then:
            skipped ":write"
            originBuildInvocationId(":write") == thirdBuildId
    
            when:
            succeeds  "write"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 24 14:10:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/worker/TestEventSerializer.java

            }
    
            @Override
            public void write(Encoder encoder, DefaultNestedTestSuiteDescriptor value) throws Exception {
                idSerializer.write(encoder, (CompositeIdGenerator.CompositeId) value.getId());
                encoder.writeString(value.getName());
                encoder.writeString(value.getDisplayName());
                idSerializer.write(encoder, value.getParentId());
            }
        }
    
        @NonNullApi
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/streams/DefaultValueStoreTest.groovy

            store?.close()
        }
    
        def "can write and then read a block multiple times"() {
            expect:
            def block = write("test")
            read(block) == "test"
            read(block) == "test"
            read(block) == "test"
        }
    
        def "can write multiple blocks and read in any order"() {
            expect:
            def block1 = write("test 1")
            def block2 = write("test 2")
            def block3 = write("test 3")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/JsonModelWriter.kt

                write(buffer.toStringAndRecycle())
            }
        }
    
        private
        fun comma() {
            write(',')
        }
    
        private
        fun documentationLinkFor(section: DocumentationSection) =
            documentationRegistry.documentationLinkFor(section)
    
        private
        fun write(csq: CharSequence) = writer.append(csq)
    
        private
        fun write(c: Char) = writer.append(c)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
          assertThrows(IOException.class, () -> out.write(data));
          return;
        }
        out.write(data);
        assertTrue(Arrays.equals(data, source.read()));
    
        out.close();
        assertThrows(IOException.class, () -> out.write(42));
    
        // Verify that write had no effect
        assertTrue(Arrays.equals(data, source.read()));
        out.reset();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

                    throw new DictionaryException("Failed to write: " + oldItem + " -> " + item, e);
                }
            }
    
            public void write(final String line) {
                try {
                    writer.write(line);
                    writer.write(Constants.LINE_SEPARATOR);
                } catch (final IOException e) {
                    throw new DictionaryException("Failed to write: " + line, e);
                }
            }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlFactory.java

                    .build());
        }
    
        default void write(@Nonnull T content, @Nonnull Writer writer) throws XmlWriterException {
            write(XmlWriterRequest.<T>builder().content(content).writer(writer).build());
        }
    
        void write(@Nonnull XmlWriterRequest<T> request) throws XmlWriterException;
    
        /**
         * Simply parse the given xml string.
         *
         * @param xml the input xml string
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Nov 17 15:52:15 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. internal/ringbuffer/ring_buffer_test.go

    				t.Fatalf("write failed: %v", err)
    			}
    			wroteBytes += n
    			wrote.Write(buf[:n])
    			debugln("WRITE 4\t", n, wroteBytes)
    
    			// TryWriteByte
    			err = rb.TryWriteByte(buf[0])
    			if err != nil && err != ErrAcquireLock && err != ErrTooMuchDataToWrite && err != ErrIsFull {
    				t.Fatalf("write failed: %v", err)
    			}
    			if err == nil {
    				wroteBytes++
    				wrote.Write(buf[:1])
    				debugln("WRITE 5\t", 1, wroteBytes)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top