Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for Tata (0.03 sec)

  1. src/cmd/go/internal/mmap/mmap_other.go

    package mmap
    
    import (
    	"io"
    	"os"
    )
    
    // mmapFile on other systems doesn't mmap the file. It just reads everything.
    func mmapFile(f *os.File) (Data, error) {
    	b, err := io.ReadAll(f)
    	if err != nil {
    		return Data{}, err
    	}
    	return Data{f, b}, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 454 bytes
    - Viewed (0)
  2. lib/time/mkzip.go

    		if d.IsDir() {
    			return nil
    		}
    		data, err := os.ReadFile(path)
    		if err != nil {
    			log.Fatal(err)
    		}
    		if strings.HasSuffix(path, ".zip") {
    			log.Fatalf("unexpected file during walk: %s", path)
    		}
    		name := filepath.ToSlash(path)
    		w, err := zw.CreateRaw(&zip.FileHeader{
    			Name:               name,
    			Method:             zip.Store,
    			CompressedSize64:   uint64(len(data)),
    			UncompressedSize64: uint64(len(data)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:32:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modfetch/codehost/git_test.go

    				}
    				if len(data) != 0 {
    					t.Errorf("ReadFile: non-empty data %q with error %v", data, err)
    				}
    				return
    			}
    			if tt.err != "" {
    				t.Fatalf("ReadFile: no error, wanted %v", tt.err)
    			}
    			if string(data) != tt.data {
    				t.Errorf("ReadFile: incorrect data\nhave %q\nwant %q", data, tt.data)
    			}
    		}
    	}
    
    	for _, tt := range []readFileTest{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 19:46:23 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  4. src/cmd/covdata/covdata.go

    Commands are:
    
    textfmt     convert coverage data to textual format
    percent     output total percentage of statements covered
    pkglist     output list of package import paths
    func        output coverage profile information for each function
    merge       merge data files together
    subtract    subtract one set of data files from another set
    intersect   generate intersection of two sets of data files
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. tests/associations_has_one_test.go

    	}
    	AssertAssociationCount(t, user2, "Account", 1, "after delete non-existing data")
    
    	if err := DB.Model(&user2).Association("Account").Delete(&account2); err != nil {
    		t.Fatalf("Error happened when delete Account, got %v", err)
    	}
    	AssertAssociationCount(t, user2, "Account", 0, "after delete")
    
    	// Prepare Data for Clear
    	account = Account{Number: "account-has-one-append"}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. association.go

    			cleanUpDeletedRelations := func(data reflect.Value) {
    				if _, zero := rel.Field.ValueOf(association.DB.Statement.Context, data); !zero {
    					fieldValue := reflect.Indirect(rel.Field.ReflectValueOf(association.DB.Statement.Context, data))
    					primaryValues := make([]interface{}, len(rel.FieldSchema.PrimaryFields))
    
    					switch fieldValue.Kind() {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  7. tests/associations_has_many_test.go

    	}
    	AssertAssociationCount(t, user2, "Pets", 1, "after delete non-existing data")
    
    	if err := DB.Model(&user2).Association("Pets").Delete(&pet2); err != nil {
    		t.Fatalf("Error happened when delete Pets, got %v", err)
    	}
    	AssertAssociationCount(t, user2, "Pets", 0, "after delete")
    
    	// Prepare Data for Clear
    	if err := DB.Model(&user2).Association("Pets").Append(&pet); err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. src/cmd/go/internal/help/help.go

    	}
    	return n, err
    }
    
    // tmpl executes the given template text on data, writing the result to w.
    func tmpl(w io.Writer, text string, data any) {
    	t := template.New("top")
    	t.Funcs(template.FuncMap{"trim": strings.TrimSpace, "capitalize": capitalize})
    	template.Must(t.Parse(text))
    	ew := &errWriter{w: w}
    	err := t.Execute(ew, data)
    	if ew.err != nil {
    		// I/O error writing. Ignore write on closed pipe.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. src/cmd/covdata/tool_test.go

    		s.outdirs[i] = d
    		if err := os.Mkdir(d, 0777); err != nil {
    			t.Fatalf("can't create outdir %s: %v", d, err)
    		}
    	}
    
    	// Run instrumented program to generate some coverage data output files,
    	// as follows:
    	//
    	//   <tmp>/covdata0   -- prog1.go compiled -cover
    	//   <tmp>/covdata1   -- prog1.go compiled -cover
    	//   <tmp>/covdata2   -- prog1.go compiled -covermode=atomic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/staticinit/sched.go

    		} else {
    			itab = reflectdata.ITabAddrAt(base.Pos, val.Type(), typ)
    		}
    
    		// Create a copy of l to modify while we emit data.
    
    		// Emit itab, advance offset.
    		staticdata.InitAddr(l, loff, itab.X.(*ir.LinksymOffsetExpr).Linksym)
    
    		// Emit data.
    		if types.IsDirectIface(val.Type()) {
    			if val.Op() == ir.ONIL {
    				// Nil is zero, nothing to do.
    				return true
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top