- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for Repeat (0.05 sec)
-
src/archive/tar/writer_test.go
int64(1e10 - blockSize), strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10), int64(1e10 - blockSize), strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10), int64(1e10 - blockSize), strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10), int64(1e10 - blockSize), strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10),
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 39.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/StringsTest.java
String input = "20"; assertEquals("", Strings.repeat(input, 0)); assertEquals("20", Strings.repeat(input, 1)); assertEquals("2020", Strings.repeat(input, 2)); assertEquals("202020", Strings.repeat(input, 3)); assertEquals("", Strings.repeat("", 4)); for (int i = 0; i < 100; ++i) { assertEquals(2 * i, Strings.repeat(input, i).length()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 10.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/MultilineMessageHelper.java
sb.setLength(0); repeat(sb, BOX_CHAR, size); result.add(sb.toString()); // lines for (String line : lines) { sb.setLength(0); String[] words = S_FILTER.split(line); for (String word : words) { if (sb.length() >= remainder - word.length() - (sb.length() > 0 ? 1 : 0)) { repeat(sb, ' ', remainder - sb.length());
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/StringsTest.java
String input = "20"; assertEquals("", Strings.repeat(input, 0)); assertEquals("20", Strings.repeat(input, 1)); assertEquals("2020", Strings.repeat(input, 2)); assertEquals("202020", Strings.repeat(input, 3)); assertEquals("", Strings.repeat("", 4)); for (int i = 0; i < 100; ++i) { assertEquals(2 * i, Strings.repeat(input, i).length()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 10.4K bytes - Viewed (0) -
src/archive/zip/writer_test.go
func TestWriterComment(t *testing.T) { tests := []struct { comment string ok bool }{ {"hi, hello", true}, {"hi, こんにちわ", true}, {strings.Repeat("a", uint16max), true}, {strings.Repeat("a", uint16max+1), false}, } for _, test := range tests { // write a zip file buf := new(bytes.Buffer) w := NewWriter(buf) if err := w.SetComment(test.comment); err != nil {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 14.4K bytes - Viewed (0) -
src/archive/tar/reader_test.go
inputHdrs: map[string]string{paxGNUSparseMajor: "1", paxGNUSparseMinor: "0"}, wantErr: ErrHeader, }, { inputData: padInput(strings.Repeat("0", 300) + "1\n" + strings.Repeat("0", 1000) + "5\n" + strings.Repeat("0", 800) + "2\n"), inputHdrs: map[string]string{paxGNUSparseMajor: "1", paxGNUSparseMinor: "0"}, wantMap: sparseDatas{{5, 2}}, }, { inputData: padInput("2\n10737418240\n512\n21474836480\n512\n"),
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0) -
src/bufio/bufio_test.go
b0 := NewWriterSize(&w0, 1234) b0.WriteString(strings.Repeat("x", 1000)) if w0 != 0 { t.Fatalf("write 1000 'x's: got %d writes, want 0", w0) } b0.WriteString(strings.Repeat("x", 200)) if w0 != 0 { t.Fatalf("write 1200 'x's: got %d writes, want 0", w0) } io.Copy(b0, onlyReader{strings.NewReader(strings.Repeat("x", 30))}) if w0 != 0 {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 51.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java
/** A domain part which is valid under lenient validation, but invalid under strict validation. */ static final String LOTS_OF_DELTAS = Strings.repeat(DELTA, 62); private static final String ALMOST_TOO_MANY_LEVELS = Strings.repeat("a.", 127); private static final String ALMOST_TOO_LONG = Strings.repeat("aaaaa.", 40) + "1234567890.c"; private static final ImmutableSet<String> VALID_NAME = ImmutableSet.of( "foo.com",
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 17.1K bytes - Viewed (0) -
istioctl/pkg/writer/table/writer.go
if i == len(row)-1 { _, _ = fmt.Fprint(c.writer, "\n") } else { padAmount := sep[i] - utf8.RuneCount([]byte(col.Value)) + 2 _, _ = fmt.Fprint(c.writer, strings.Repeat(" ", padAmount)) } } } } func getMaxWidths(output [][]Cell) []int { widths := make([]int, len(output[0])) for _, row := range output { for i, col := range row {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Nov 06 09:43:25 UTC 2024 - 2.7K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/PerformanceTest.kt
steps { preBuildSteps() killProcessStep(buildTypeThis, KILL_ALL_GRADLE_PROCESSES, os) substDirOnWindows(os) repeat(if (performanceTestBuildSpec.type == PerformanceTestType.flakinessDetection) 2 else 1) { repeatIndex: Int -> gradleWrapper { name = "GRADLE_RUNNER${if (repeatIndex == 0) "" else "_2"}"
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Sep 24 06:22:49 UTC 2024 - 5.6K bytes - Viewed (0)