- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 122 for EOF (0.01 sec)
-
src/bufio/bufio_test.go
t.Errorf(`Peek(4) on "abcd", EOF = %q, %v; want "abcd", nil`, string(s), err) } if n, err := buf.Read(p[0:5]); string(p[0:n]) != "abcd" || err != nil { t.Fatalf("Read after peek = %q, %v; want abcd, EOF", p[0:n], err) } if n, err := buf.Read(p[0:1]); string(p[0:n]) != "" || err != io.EOF { t.Fatalf(`second Read after peek = %q, %v; want "", EOF`, p[0:n], err) } } type dataAndEOFReader string
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Feb 07 01:08:54 UTC 2025 - 51.6K bytes - Viewed (0) -
src/cmd/asm/internal/asm/expr_test.go
} tok := p.next() if test.atEOF && tok.ScanToken != scanner.EOF { t.Errorf("%d: %q: at EOF got %s", i, test.input, tok) } else if !test.atEOF && tok.ScanToken == scanner.EOF { t.Errorf("%d: %q: expected not EOF but at EOF", i, test.input) } } } type badExprTest struct { input string error string // Empty means no error. }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 3.2K bytes - Viewed (0) -
ci/official/containers/ml_build/setup.python.sh
cat >pythons.txt <<EOF $VERSION EOF elif [[ ${VERSION} == "python3.14" || ${VERSION} == "python3.13" || ${VERSION} == "python3.12" ]]; then cat >pythons.txt <<EOF $VERSION $VERSION-dev $VERSION-venv EOF else cat >pythons.txt <<EOF $VERSION $VERSION-dev $VERSION-venv $VERSION-distutils EOF fi /setup.packages.sh pythons.txt
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Fri Aug 01 02:44:57 UTC 2025 - 2.8K bytes - Viewed (0) -
docs/iam/opa.md
```sh cat > example.rego <<EOF package httpapi.authz import input default allow = false # Allow the root user to perform any action. allow { input.owner == true } # All other users may do anything other than call PutObject allow { input.action != "s3:PutObject" input.owner == false } EOF ``` Then load the policy via OPA's REST API. ```
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Jul 17 15:43:14 UTC 2022 - 2.3K bytes - Viewed (0) -
src/bufio/scan.go
return &Scanner{ r: r, split: ScanLines, maxTokenSize: MaxScanTokenSize, } } // Err returns the first non-EOF error that was encountered by the [Scanner]. func (s *Scanner) Err() error { if s.err == io.EOF { return nil } return s.err } // Bytes returns the most recent token generated by a call to [Scanner.Scan].
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed May 21 18:05:26 UTC 2025 - 14.2K bytes - Viewed (0) -
src/cmd/asm/internal/lex/stack.go
// it resumes reading the next one down. type Stack struct { tr []TokenReader } // Push adds tr to the top (end) of the input stack. (Popping happens automatically.) func (s *Stack) Push(tr TokenReader) { s.tr = append(s.tr, tr) } func (s *Stack) Next() ScanToken { tos := s.tr[len(s.tr)-1] tok := tos.Next() for tok == scanner.EOF && len(s.tr) > 1 { tos.Close()
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jan 09 22:33:23 UTC 2017 - 1.2K bytes - Viewed (0) -
cmd/perf-tests.go
n.firstToDisconnect = time.Time{} } // Reader to read random data. type netperfReader struct { n uint64 eof chan struct{} buf []byte } func (m *netperfReader) Read(b []byte) (int, error) { select { case <-m.eof: return 0, io.EOF default: } n := copy(b, m.buf) atomic.AddUint64(&m.n, uint64(n)) return n, nil }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 11.7K bytes - Viewed (0) -
src/bufio/net_test.go
"strings" "sync" "testing" ) // TestCopyUnixpacket tests that we can use bufio when copying // across a unixpacket socket. This used to fail due to an unnecessary // empty Write call that was interpreted as an EOF. func TestCopyUnixpacket(t *testing.T) { tmpDir := t.TempDir() socket := filepath.Join(tmpDir, "unixsock") // Start a unixpacket server. addr := &net.UnixAddr{ Name: socket, Net: "unixpacket", }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Feb 07 19:37:07 UTC 2025 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
assertThrows(IOException.class, () -> handle.doSendReceiveFragment(buf, 0, 50, inB)); } @Test @DisplayName("Should throw IOException on unexpected EOF") void testDoSendReceiveFragment_UnexpectedEOF() throws Exception { DcerpcPipeHandle handle = createMockedDcerpcPipeHandle(); byte[] buf = new byte[50];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
docs/distributed/distributed-from-config-file.sh
;; esac wget -O mc https://dl.minio.io/client/mc/release/${os,,}-${arch,,}/mc && chmod +x mc fi for i in $(seq 1 4); do s3Port="$((9000 + i))" consolePort="$((s3Port + 1000))" cat <<EOF >/tmp/minio.configfile.$i version: v1 address: ':${s3Port}' console-address: ':${consolePort}' rootUser: 'minr0otUS2r' rootPassword: 'pBU94AGAY85e' pools: # Specify the nodes and drives with pools -
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Jun 28 09:06:49 UTC 2024 - 3.3K bytes - Viewed (0)