Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 93 for appendRule (0.17 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/services/StreamBackedStandardOutputListenerTest.groovy

    class StreamBackedStandardOutputListenerTest extends Specification {
        def canAppendToAnAppendable() {
            Appendable appendable = Mock()
            def listener = new StreamBackedStandardOutputListener(appendable)
    
            when:
            listener.onOutput("text")
    
            then:
            1 * appendable.append("text")
            0 * _._
        }
    
        def canAppendToAWriter() {
            Writer writer = Mock()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Logger.java

     */
    package org.gradle.wrapper;
    
    public class Logger implements Appendable {
    
        private final boolean quiet;
    
        public Logger(boolean quiet) {
            this.quiet = quiet;
        }
    
        public void log(String message) {
            if (!quiet) {
                System.out.println(message);
            }
        }
    
        @Override
        public Appendable append(CharSequence csq) {
            if (!quiet) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/IO.kt

     */
    
    package org.gradle.kotlin.dsl.internal.sharedruntime.support
    
    
    /**
     * Appends value to the given Appendable and simple `\n` line separator after it.
     *
     * Always using the same line separator on all systems to allow for reproducible outputs.
     */
    fun Appendable.appendReproducibleNewLine(value: CharSequence = ""): Appendable {
        assert('\r' !in value) {
            "Unexpected line ending in string."
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:27 UTC 2023
    - 1K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/rule/describe/ModelRuleDescriptor.java

     */
    public interface ModelRuleDescriptor {
        /**
         * This method is expected to be idempotent.
         *
         * @param appendable where to write the description to.
         */
        void describeTo(Appendable appendable);
    
        ModelRuleDescriptor append(ModelRuleDescriptor child);
    
        ModelRuleDescriptor append(String child);
    
        @FormatMethod
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 12:38:02 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

            return in.read(cbuf, off, Math.max(len - 1024, 0));
          }
        };
      }
    
      /** Wrap an appendable in an appendable to defeat any type specific optimizations. */
      private static Appendable wrapAsGenericAppendable(final Appendable a) {
        return new Appendable() {
    
          @Override
          public Appendable append(CharSequence csq) throws IOException {
            a.append(csq);
            return this;
          }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/CharStreamsTest.java

            return in.read(cbuf, off, Math.max(len - 1024, 0));
          }
        };
      }
    
      /** Wrap an appendable in an appendable to defeat any type specific optimizations. */
      private static Appendable wrapAsGenericAppendable(final Appendable a) {
        return new Appendable() {
    
          @Override
          public Appendable append(CharSequence csq) throws IOException {
            a.append(csq);
            return this;
          }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/AppendableWriterTest.java

      private static class SpyAppendable implements Appendable, Flushable, Closeable {
        boolean flushed;
        boolean closed;
        StringBuilder result = new StringBuilder();
    
        @Override
        public Appendable append(CharSequence csq) {
          result.append(csq);
          return this;
        }
    
        @Override
        public Appendable append(char c) {
          result.append(c);
          return this;
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. cmd/storage-rest_test.go

    		}
    	}
    }
    
    func testStorageAPIRenameFile(t *testing.T, storage StorageAPI) {
    	err := storage.AppendFile(context.Background(), "foo", "myobject", []byte("foo"))
    	if err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    
    	err = storage.AppendFile(context.Background(), "foo", "otherobject", []byte("foo"))
    	if err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/rule/describe/SimpleModelRuleDescriptor.java

                }
            });
        }
    
        private String getDescriptor() {
            return factory.create();
        }
    
        @Override
        public void describeTo(Appendable appendable) {
            try {
                appendable.append(getDescriptor());
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
        @Override
        public boolean equals(Object o) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. cmd/xl-storage_windows_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	err = fs.AppendFile(context.Background(), "voldir", "/file", []byte("hello"))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Try to create a file that includes a file in its path components.
    	// In *nix, this returns syscall.ENOTDIR while in windows we receive the following error.
    	err = fs.AppendFile(context.Background(), "voldir", "/file/obj1", []byte("hello"))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 29 06:35:16 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top