Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 77 for appendRule (0.23 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/text/StreamingStyledTextOutputFactory.java

    package org.gradle.internal.logging.text;
    
    import org.gradle.api.logging.LogLevel;
    
    public class StreamingStyledTextOutputFactory extends AbstractStyledTextOutputFactory {
        private final Appendable target;
    
        public StreamingStyledTextOutputFactory(Appendable target) {
            this.target = target;
        }
    
        @Override
        public StyledTextOutput create(String logCategory, LogLevel logLevel) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. cmd/xl-storage_test.go

    	// Create test files for further reading.
    	for i, appendFile := range appendFiles {
    		err = xlStorage.AppendFile(context.Background(), volume, appendFile.fileName, []byte("hello, world"))
    		if err != appendFile.expectedErr {
    			t.Fatalf("Creating file failed: %d %#v, expected: %s, got: %s", i+1, appendFile, appendFile.expectedErr, err)
    		}
    	}
    
    	{
    		buf := make([]byte, 5)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/problems/failure/FailurePrinter.java

            return output.toString();
        }
    
        public static void print(Appendable output, Failure failure, FailurePrinterListener listener) {
            new Job(output, listener).print(failure);
        }
    
        private static final class Job {
    
            private final FailurePrinterListener listener;
    
            private final Appendable builder;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:45:41 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. src/unicode/utf16/utf16_test.go

    		}
    	}
    }
    
    func TestAppendRune(t *testing.T) {
    	for _, tt := range encodeTests {
    		var out []uint16
    		for _, u := range tt.in {
    			out = AppendRune(out, u)
    		}
    		if !reflect.DeepEqual(out, tt.out) {
    			t.Errorf("AppendRune(%x) = %x; want %x", tt.in, out, tt.out)
    		}
    	}
    }
    
    func TestEncodeRune(t *testing.T) {
    	for i, tt := range encodeTests {
    		j := 0
    		for _, r := range tt.in {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/JoinerTest.java

          throw new AssertionError(e);
        }
      }
    
      private static final Appendable NASTY_APPENDABLE =
          new Appendable() {
            @Override
            public Appendable append(@Nullable CharSequence csq) throws IOException {
              throw new IOException();
            }
    
            @Override
            public Appendable append(@Nullable CharSequence csq, int start, int end)
                throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/BaseEncoding.java

          }
        };
      }
    
      static Appendable separatingAppendable(
          Appendable delegate, String separator, int afterEveryChars) {
        checkNotNull(delegate);
        checkNotNull(separator);
        checkArgument(afterEveryChars > 0);
        return new Appendable() {
          int charsUntilSeparator = afterEveryChars;
    
          @Override
          public Appendable append(char c) throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 15 16:33:32 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/JoinerTest.java

          throw new AssertionError(e);
        }
      }
    
      private static final Appendable NASTY_APPENDABLE =
          new Appendable() {
            @Override
            public Appendable append(@Nullable CharSequence csq) throws IOException {
              throw new IOException();
            }
    
            @Override
            public Appendable append(@Nullable CharSequence csq, int start, int end)
                throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/BaseEncoding.java

          }
        };
      }
    
      static Appendable separatingAppendable(
          Appendable delegate, String separator, int afterEveryChars) {
        checkNotNull(delegate);
        checkNotNull(separator);
        checkArgument(afterEveryChars > 0);
        return new Appendable() {
          int charsUntilSeparator = afterEveryChars;
    
          @Override
          public Appendable append(char c) throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 15 16:33:32 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/AnsiConsole.java

        private final AnsiExecutor ansiExecutor;
    
        public AnsiConsole(Appendable target, Flushable flushable, ColorMap colorMap, ConsoleMetaData consoleMetaData, boolean forceAnsi) {
            this(target, flushable, colorMap, consoleMetaData, new DefaultAnsiFactory(forceAnsi));
        }
    
        private AnsiConsole(Appendable target, Flushable flushable, ColorMap colorMap, ConsoleMetaData consoleMetaData, AnsiFactory factory) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. internal/ioutil/ioutil_test.go

    	defer os.Remove(name2)
    	f.WriteString("bbbbbbbbbb")
    	f.Close()
    
    	if err = AppendFile(name1, name2, false); err != nil {
    		t.Error(err)
    	}
    
    	b, err := os.ReadFile(name1)
    	if err != nil {
    		t.Error(err)
    	}
    
    	expected := "aaaaaaaaaabbbbbbbbbb"
    	if string(b) != expected {
    		t.Errorf("AppendFile() failed, expected: %s, got %s", expected, string(b))
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top