Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 248 for Change (0.2 sec)

  1. tests/non_std_test.go

    	DB.First(&animal, animal.Counter)
    	if animal.Name != "galeone" {
    		t.Errorf("Name fields shouldn't be changed if untouched, but got %v", animal.Name)
    	}
    
    	// When changing a field with a default value, the change must occur
    	animal.Name = "amazing horse"
    	DB.Save(&animal)
    	DB.First(&animal, animal.Counter)
    	if animal.Name != "amazing horse" {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  2. internal/amztime/parse.go

    func Parse(amzDateStr string) (time.Time, error) {
    	for _, dateFormat := range amzDateFormats {
    		amzDate, err := time.Parse(dateFormat, amzDateStr)
    		if err == nil {
    			return amzDate, nil
    		}
    	}
    	return time.Time{}, ErrMalformedDate
    }
    
    var httpTimeFormats = []string{
    	// Do not change this order, http time format dates
    	// are usually in http.TimeFormat however there are
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/cmd/addr2line/main.go

    // first the name of the function containing the address and second the file:line
    // of the source code corresponding to that address.
    //
    // This tool is intended for use only by pprof; its interface may change or
    // it may be deleted entirely in future releases.
    package main
    
    import (
    	"bufio"
    	"flag"
    	"fmt"
    	"log"
    	"os"
    	"strconv"
    	"strings"
    
    	"cmd/internal/objfile"
    )
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/informers.go

    		shouldBeEnabled := util.PodRedirectionEnabled(ns, newPod)
    
    		// We should check the latest annotation vs desired status
    		changeNeeded := isAnnotated != shouldBeEnabled
    		// Also need change for case user manually rolls out the pods
    		changeNeeded = changeNeeded || (wasAnnotated && isOpOut && !shouldBeEnabled)
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 01:03:24 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  5. cmd/xl-storage_test.go

    			t.Fatalf("Unable to change permission to temporary directory %v. %v", permDeniedDir, err)
    		}
    
    		xlStorageNew, err := newLocalXLStorage(permDeniedDir)
    		if err != nil {
    			t.Fatalf("Unable to initialize xlStorage, %s", err)
    		}
    
    		// change backend permissions for MakeVol error.
    		if err = os.Chmod(permDeniedDir, 0o400); err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  6. src/cmd/api/main_test.go

    	for _, w := range walkers {
    		for _, name := range w.stdPackages {
    			pkg, err := w.import_(name)
    			if _, nogo := err.(*build.NoGoError); nogo {
    				continue
    			}
    			if err != nil {
    				log.Fatalf("Import(%q): %v", name, err)
    			}
    			w.export(pkg)
    		}
    
    		ctxName := contextName(w.context)
    		for _, f := range w.Features() {
    			if featureCtx[f] == nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  7. cni/pkg/install/install.go

    	if err := checkValidCNIConfig(in.cfg, in.cniConfigFilepath); err != nil {
    		return nil
    	}
    
    	// If a file we are watching has a change event, yield and let caller check validity
    	select {
    	case <-watcher.Events:
    		// Something changed, and we must yield
    		return nil
    	case err := <-watcher.Errors:
    		// We had a watch error - that's no good
    		return err
    	case <-ctx.Done():
    		return ctx.Err()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  8. internal/s3select/csv/recordtransform.go

    		n, err = rr.reader.Read(p)
    	}
    
    	if err != nil {
    		return n, err
    	}
    
    	// Do nothing if record-delimiter is already newline.
    	if string(rr.recordDelimiter) == "\n" {
    		return n, nil
    	}
    
    	// Change record delimiters to newline.
    	if len(rr.recordDelimiter) == 1 {
    		for idx := 0; idx < len(p); {
    			i := bytes.Index(p[idx:], rr.recordDelimiter)
    			if i < 0 {
    				break
    			}
    			idx += i
    			p[idx] = '\n'
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.1K bytes
    - Viewed (0)
  9. cni/pkg/install/install_test.go

    			}
    
    			// Change SA token
    			if len(c.saNewFilename) > 0 {
    				t.Log("Expecting detect changes to the SA token")
    				if err := file.AtomicCopy(filepath.Join("testdata", c.saNewFilename), tempDir, c.saFilename); err != nil {
    					t.Fatal(err)
    				}
    
    				select {
    				case err := <-errChan:
    					if err != nil {
    						// A change in SA token should return nil
    						t.Fatal(err)
    					}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  10. istioctl/pkg/tag/tag.go

    change which control plane revision handles injection, it's possible to create a revision tag "prod" and label our
    namespace "istio.io/rev=prod". The "prod" revision tag could point to "1-7-6" initially and then be changed to point to "1-8-1"
    at some later point.
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
Back to top