- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for WriteString (0.08 sec)
-
src/bufio/bufio_test.go
} func (w *teststringwriter) WriteString(s string) (int, error) { w.writeString += s return len(s), nil } func (w *teststringwriter) check(t *testing.T, write, writeString string) { t.Helper() if w.write != write { t.Errorf("write: expected %q, got %q", write, w.write) } if w.writeString != writeString { t.Errorf("writeString: expected %q, got %q", writeString, w.writeString) } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 51.6K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java
Path mavenUserProps = mavenConf.resolve("maven.properties"); Files.writeString(mavenUserProps, "${includes} = ?\"/user/ma ven.properties\", ?/foo/bar\n"); Path userDirectory = fs.getPath("/user"); Files.createDirectories(userDirectory); Path propsPath = userDirectory.resolve("ma ven.properties"); Files.writeString(propsPath, "${includes} = another.properties\nfro = ${bar}z\n");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.1K bytes - Viewed (0) -
cmd/storage-datatypes_gen.go
if err != nil { err = msgp.WrapError(err, "Scanning") return } err = en.WriteString(z.Endpoint) if err != nil { err = msgp.WrapError(err, "Endpoint") return } err = en.WriteString(z.MountPath) if err != nil { err = msgp.WrapError(err, "MountPath") return } err = en.WriteString(z.ID) if err != nil { err = msgp.WrapError(err, "ID") return }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 15:30:50 UTC 2024 - 150.2K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTestSupport.java
</dependency> </dependencies> </project> """; Path pom = cwd.resolve("pom.xml").toAbsolutePath(); Files.writeString(pom, pomString); String appJavaString = """ package org.apache.maven.samples.sample; public class App {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.8K bytes - Viewed (0) -
cmd/xl-storage-format-v1_gen.go
if err != nil { err = msgp.WrapError(err, "Checksums") return } for za0001, za0002 := range z.Checksums { err = en.WriteString(za0001) if err != nil { err = msgp.WrapError(err, "Checksums") return } err = en.WriteString(za0002) if err != nil { err = msgp.WrapError(err, "Checksums", za0001) return } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 15:30:50 UTC 2024 - 41.2K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java
Files.writeString(mavenUserProps, "${includes} = ?${session.rootDirectory}/.mvn/maven.properties\n"); Path rootDirectory = fs.getPath("C:\\myRootDirectory"); Path topDirectory = rootDirectory.resolve("myTopDirectory"); Path mvn = rootDirectory.resolve(".mvn"); Files.createDirectories(mvn); Files.writeString( mvn.resolve("maven.properties"),
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 30.3K bytes - Viewed (0) -
istioctl/pkg/analyze/analyze.go
type FileParseError struct{} const FileParseString = "Some files couldn't be parsed." func (f AnalyzerFoundIssuesError) Error() string { var sb strings.Builder sb.WriteString(fmt.Sprintf("Analyzers found issues when analyzing %s.\n", analyzeTargetAsString())) sb.WriteString(fmt.Sprintf("See %s for more information about causes and resolutions.", url.ConfigAnalysis)) return sb.String() } func (f FileParseError) Error() string {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 31 06:53:50 UTC 2024 - 17.6K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/CLIManagerDocumentationTest.java
return sb.toString(); } @Test void testOptionsAsHtml() throws IOException { Path options = Paths.get("target/test-classes/options.html"); Files.writeString(options, getOptionsAsHtml(), StandardCharsets.UTF_8); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4K bytes - Viewed (0) -
src/bytes/buffer.go
if !ok { m = b.grow(len(p)) } return copy(b.buf[m:], p), nil } // WriteString appends the contents of s to the buffer, growing the buffer as // needed. The return value n is the length of s; err is always nil. If the // buffer becomes too large, WriteString will panic with [ErrTooLarge]. func (b *Buffer) WriteString(s string) (n int, err error) { b.lastRead = opInvalid m, ok := b.tryGrowByReslice(len(s))
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Oct 29 16:47:05 UTC 2024 - 15.7K bytes - Viewed (0) -
cmd/xl-storage-format-v2_gen.go
if err != nil { err = msgp.WrapError(err, "MetaUser") return } for za0011, za0012 := range z.MetaUser { err = en.WriteString(za0011) if err != nil { err = msgp.WrapError(err, "MetaUser") return } err = en.WriteString(za0012) if err != nil { err = msgp.WrapError(err, "MetaUser", za0011) return } } } return }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 15:30:50 UTC 2024 - 55.5K bytes - Viewed (0)