Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 106 for appendRule (0.37 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. internal/ioutil/append-file_windows.go

    package ioutil
    
    import (
    	"io"
    	"os"
    
    	"github.com/minio/minio/internal/lock"
    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	appendFile, err := lock.Open(dst, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o666)
    	if err != nil {
    		return err
    	}
    	defer appendFile.Close()
    
    	srcFile, err := lock.Open(src, os.O_RDONLY, 0o666)
    	if err != nil {
    		return err
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  4. internal/ioutil/append-file_nix.go

    package ioutil
    
    import (
    	"io"
    	"os"
    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	flags := os.O_WRONLY | os.O_APPEND | os.O_CREATE
    	if osync {
    		flags |= os.O_SYNC
    	}
    	appendFile, err := os.OpenFile(dst, flags, 0o666)
    	if err != nil {
    		return err
    	}
    	defer appendFile.Close()
    
    	srcFile, err := os.Open(src)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top