Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for fileMap (0.17 sec)

  1. src/go/types/check_test.go

    			// not the last entry - slide entries down (don't reorder)
    			copy(errList[index:], errList[index+1:])
    			filemap[line] = errList[:n]
    		} else {
    			// last entry - remove errList from filemap
    			delete(filemap, line)
    		}
    
    		// if filemap is empty, eliminate from errmap
    		if len(filemap) == 0 {
    			delete(errmap, filename)
    		}
    	}
    
    	// there should be no expected errors left
    	if len(errmap) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/check_test.go

    			// not the last entry - slide entries down (don't reorder)
    			copy(errList[index:], errList[index+1:])
    			filemap[line] = errList[:n]
    		} else {
    			// last entry - remove errList from filemap
    			delete(filemap, line)
    		}
    
    		// if filemap is empty, eliminate from errmap
    		if len(filemap) == 0 {
    			delete(errmap, filename)
    		}
    	}
    
    	// there should be no expected errors left
    	if len(errmap) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. docs/debugging/xl-meta/main.go

    							if i > 1 {
    								file = fmt.Sprintf("%s/part.%d", file, i)
    								filemap[file] = make(map[string]string)
    								filemap[file][verID] = fmt.Sprintf("%s/part.%d/shard-%02d-of-%02d", verID, i, idx, ei.V2Obj.EcN+ei.V2Obj.EcM)
    								filemap[file][verID+".json"] = buf.String()
    							}
    							partDataToVerID[dataFile] = [2]string{file, verID}
    						}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  4. src/go/types/generate_test.go

    	// If filesToWrite is set, write the generated content to disk.
    	// In the special case of "all", write all files in filemap.
    	write := *filesToWrite != ""
    	var files []string // files to process
    	if *filesToWrite != "" && *filesToWrite != "all" {
    		files = strings.Split(*filesToWrite, ",")
    	} else {
    		for file := range filemap {
    			files = append(files, file)
    		}
    	}
    
    	for _, filename := range files {
    		generate(t, filename, write)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  5. src/os/stat_windows.go

    	if err == windows.ERROR_INVALID_PARAMETER {
    		// Console handles, like "\\.\con", require generic read access. See
    		// https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew#consoles.
    		// We haven't set it previously because it is normally not required
    		// to read attributes and some files may not allow it.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py

        patha.write_text("<file content>")
        pathb.write_text("<file b content>")
    
        client = TestClient(app)
        with patha.open("rb") as filea, pathb.open("rb") as fileb:
            response = client.post(
                "/files/",
                data={"token": "foo"},
                files={"file": filea, "fileb": ("testb.txt", fileb, "text/plain")},
            )
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. src/internal/filepathlite/path_windows.go

    				return true
    			}
    			return false
    		}
    	}
    
    	// Passing CONIN$ or CONOUT$ to CreateFile opens a console handle.
    	// https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#consoles
    	//
    	// While CONIN$ and CONOUT$ aren't documented as being files,
    	// they behave the same as CON. For example, ./CONIN$ also opens the console input.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

        patha.write_text("<file content>")
        pathb.write_text("<file b content>")
    
        client = TestClient(app)
        with patha.open("rb") as filea, pathb.open("rb") as fileb:
            response = client.post(
                "/files/",
                data={"token": "foo"},
                files={"file": filea, "fileb": ("testb.txt", fileb, "text/plain")},
            )
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an_py39.py

        patha.write_text("<file content>")
        pathb.write_text("<file b content>")
    
        client = TestClient(app)
        with patha.open("rb") as filea, pathb.open("rb") as fileb:
            response = client.post(
                "/files/",
                data={"token": "foo"},
                files={"file": filea, "fileb": ("testb.txt", fileb, "text/plain")},
            )
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. src/os/types_windows.go

    	// FILE_FLAG_OPEN_REPARSE_POINT flag when opening the file if it is a reparse
    	// point.”
    	//
    	// And per https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew,
    	// “If the file is not a reparse point, then this flag is ignored.”
    	//
    	// So we set FILE_FLAG_OPEN_REPARSE_POINT unconditionally, since we want
    	// information about the reparse point itself.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top