Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for _blank (0.43 sec)

  1. src/cmd/asm/internal/asm/endtoend_test.go

    		}
    		if len(output) > 0 && output[0] == want {
    			output = output[1:]
    		} else {
    			t.Errorf("missing output: %q", want)
    		}
    	}
    	for len(output) > 0 {
    		if output[0] == "" {
    			// spurious blank caused by Split on "\n"
    			output = output[1:]
    			continue
    		}
    		t.Errorf("unexpected output: %q", output[0])
    		output = output[1:]
    	}
    
    	// Checked printing.
    	// Now check machine code layout.
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  2. tests/update_test.go

    		t.Errorf("account number should not been changed, expects: %v, got %v", user.Account.Number, result.Account.Number)
    	}
    }
    
    func TestUpdatesWithBlankValues(t *testing.T) {
    	user := *GetUser("updates_with_blank_value", Config{})
    	DB.Save(&user)
    
    	var user2 User
    	user2.ID = user.ID
    	DB.Model(&user2).Updates(&User{Age: 100})
    
    	var result User
    	DB.First(&result, user.ID)
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Dec 04 03:50:58 GMT 2023
    - 30.3K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/parse.go

    	lineNum       int   // Line number in source file.
    	errorLine     int   // Line number of last error.
    	errorCount    int   // Number of errors.
    	sawCode       bool  // saw code in this file (as opposed to comments and blank lines)
    	pc            int64 // virtual PC; count of Progs; doesn't advance for GLOBL or DATA.
    	input         []lex.Token
    	inputPos      int
    	pendingLabels []string // Labels to attach to next instruction.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/lex/slice.go

    	// position to discover whether there is a blank before the parenthesis.
    	// We only get here if defining a macro inside a macro.
    	// This imperfect implementation means we cannot tell the difference between
    	//	#define A #define B(x) x
    	// and
    	//	#define A #define B (x) x
    	// The first definition of B has an argument, the second doesn't. Because we let
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jun 29 22:49:50 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  5. tests/non_std_test.go

    		t.Errorf("Update a filed with a default value should occur. But got %v\n", animal.Name)
    	}
    
    	// When changing a field with a default value with blank value
    	animal.Name = ""
    	DB.Save(&animal)
    	DB.First(&animal, animal.Counter)
    	if animal.Name != "" {
    		t.Errorf("Update a filed to blank with a default value should occur. But got %v\n", animal.Name)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  6. internal/color/color.go

    		return fmt.Sprintf
    	}()
    
    	BgYellow = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.BgYellow).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	Black = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgBlack).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	FgRed = func() func(a ...interface{}) string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. internal/config/errors-utils.go

    	} else {
    		introMsg += color.Bold(err.Error())
    	}
    	renderedTxt += color.Red(introMsg) + "\n"
    	// Add action message
    	if uiErr.action != "" {
    		renderedTxt += "> " + color.BgYellow(color.Black(uiErr.action)) + "\n"
    	}
    	// Add hint
    	if uiErr.hint != "" {
    		renderedTxt += color.Bold("HINT:") + "\n"
    		renderedTxt += "  " + uiErr.hint
    	}
    	return renderedTxt
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  8. cmd/leak-detect_test.go

    // of leak checking. It excludes testing or runtime ones.
    func pickRelevantGoroutines() (gs []string) {
    	// get runtime stack buffer.
    	buf := debug.Stack()
    	// runtime stack of go routines will be listed with 2 blank spaces between each of them, so split on "\n\n" .
    	for _, g := range strings.Split(string(buf), "\n\n") {
    		// Again split on a new line, the first line of the second half contains the info about the go routine.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  9. istioctl/pkg/analyze/analyze.go

    						return nil
    					} else if err != nil {
    						return err
    					}
    				}
    			}
    
    			// If we've explicitly asked for all namespaces, blank the selectedNamespace var out
    			// If the user hasn't specified a namespace, use the default namespace
    			if allNamespaces {
    				selectedNamespace = ""
    			} else if selectedNamespace == "" {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  10. tests/postgres_test.go

    		t.Fatalf("Failed to migrate for uuid default value, got error: %v", err)
    	}
    
    	harumph := Harumph{}
    	if err := DB.Create(&harumph).Error; err == nil {
    		t.Fatalf("should failed to create data, name can't be blank")
    	}
    
    	harumph = Harumph{Name: "jinzhu"}
    	if err := DB.Create(&harumph).Error; err != nil {
    		t.Fatalf("should be able to create data, but got %v", err)
    	}
    
    	var result Harumph
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Oct 08 09:16:32 GMT 2022
    - 6.4K bytes
    - Viewed (3)
Back to top