Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for errorPath (0.14 sec)

  1. src/io/fs/readdir_test.go

    			}
    		})
    	}
    }
    
    func errorPath(err error) string {
    	var perr *PathError
    	if !errors.As(err, &perr) {
    		return ""
    	}
    	return perr.Path
    }
    
    func TestReadDirPath(t *testing.T) {
    	fsys := os.DirFS(t.TempDir())
    	_, err1 := ReadDir(fsys, "non-existent")
    	_, err2 := ReadDir(struct{ FS }{fsys}, "non-existent")
    	if s1, s2 := errorPath(err1), errorPath(err2); s1 != s2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:25:41 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. src/io/fs/readfile_test.go

    	}
    }
    
    func TestReadFilePath(t *testing.T) {
    	fsys := os.DirFS(t.TempDir())
    	_, err1 := ReadFile(fsys, "non-existent")
    	_, err2 := ReadFile(struct{ FS }{fsys}, "non-existent")
    	if s1, s2 := errorPath(err1), errorPath(err2); s1 != s2 {
    		t.Fatalf("s1: %s != s2: %s", s1, s2)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:25:41 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

                            .append(getCanonicalPath())
                            .append(", failed paths:\n");
                        for (String errorPath : errorPaths) {
                            builder.append("\t- ").append(errorPath).append("\n");
                        }
                        throw new IOException(builder.toString());
                    }
                }
            } else if (exists()) {
                if (!delete()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. pkg/client/tests/remotecommand_test.go

    	return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		executor := &fakeExecutor{
    			t:            t,
    			testName:     testName,
    			errorData:    errorData,
    			stdoutData:   stdoutData,
    			stderrData:   stderrData,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/stmt.go

    	}
    
    	if len(lhs) != cr {
    		if r, ok := rhs[0].(*ir.CallExpr); ok && len(rhs) == 1 {
    			if r.Type() != nil {
    				base.ErrorfAt(stmt.Pos(), errors.WrongAssignCount, "assignment mismatch: %d variable%s but %v returns %d value%s", len(lhs), plural(len(lhs)), r.Fun, cr, plural(cr))
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/staticdata/embed.go

    		for _, pattern := range e.Patterns {
    			files, ok := base.Flag.Cfg.Embed.Patterns[pattern]
    			if !ok {
    				base.ErrorfAt(e.Pos, 0, "invalid go:embed: build system did not map pattern: %s", pattern)
    			}
    			for _, file := range files {
    				if base.Flag.Cfg.Embed.Files[file] == "" {
    					base.ErrorfAt(e.Pos, 0, "invalid go:embed: build system did not map file: %s", file)
    					continue
    				}
    				if !have[file] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 10 18:22:02 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

         */
        @Override
        public void setResponse ( CommonServerMessageBlockResponse msg ) {
    
        }
    
    
        /**
         * @return the errorData
         */
        public final byte[] getErrorData () {
            return this.errorData;
        }
    
    
        /**
         * @return the errorContextCount
         */
        public final byte getErrorContextCount () {
            return this.errorContextCount;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Sep 30 10:47:31 UTC 2018
    - 19.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/scanner.go

    func (s *scanner) errorf(format string, args ...interface{}) {
    	s.error(fmt.Sprintf(format, args...))
    }
    
    // errorAtf reports an error at a byte column offset relative to the current token start.
    func (s *scanner) errorAtf(offset int, format string, args ...interface{}) {
    	s.errh(s.line, s.col+uint(offset), fmt.Sprintf(format, args...))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/abi.go

    		default:
    			base.ErrorfAt(f.Pos(), 0, "go:wasmimport %s %s: unsupported parameter type %s", f.WasmImport.Module, f.WasmImport.Name, t.String())
    		}
    		wfs[i].Offset = p.FrameOffset(result)
    	}
    	return wfs
    }
    
    func resultsToWasmFields(f *ir.Func, result *abi.ABIParamResultInfo, abiParams []abi.ABIParamAssignment) []obj.WasmField {
    	if len(abiParams) > 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssagen/nowb.go

    			funcs[fn] = nowritebarrierrecCall{}
    			q.PushRight(fn.Nname)
    		}
    		// Check go:nowritebarrier functions.
    		if fn.Pragma&ir.Nowritebarrier != 0 && fn.WBPos.IsKnown() {
    			base.ErrorfAt(fn.WBPos, 0, "write barrier prohibited")
    		}
    	}
    
    	// Perform a BFS of the call graph from all
    	// go:nowritebarrierrec functions.
    	enqueue := func(src, target *ir.Func, pos src.XPos) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 17:29:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top