- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for Blank (0.34 sec)
-
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 Apr 28 09:35:09 GMT 2024 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 1.9K bytes - Viewed (0) -
src/cmd/asm/internal/lex/slice.go
} func (s *Slice) Line() int { return s.line } func (s *Slice) Col() int { // TODO: Col is only called when defining a macro and all it cares about is increasing // 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
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) -
src/cmd/api/main_test.go
exitCode = 1 } if filepath.Base(filename) == "go1.4.txt" { // No use for blank lines in api files, except go1.4.txt // used them in a reasonable way and we should let it be. } else if strings.HasPrefix(s, "\n") || strings.Contains(s, "\n\n") { log.Printf("%s: contains a blank line", filename) exitCode = 1 } if s == "" { log.Printf("%s: empty file", filename) exitCode = 1
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) -
schema/field.go
field.Precision, _ = strconv.Atoi(p) } if s, ok := field.TagSettings["SCALE"]; ok { field.Scale, _ = strconv.Atoi(s) } // default value is function or null or blank (primary keys) field.DefaultValue = strings.TrimSpace(field.DefaultValue) skipParseDefaultValue := strings.Contains(field.DefaultValue, "(") &&
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Mon Apr 15 03:20:20 GMT 2024 - 32K bytes - Viewed (1) -
istioctl/pkg/analyze/analyze.go
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 02 08:32:06 GMT 2024 - 17K bytes - Viewed (0) -
src/cmd/cgo/ast.go
f.walk(ast1, ctxProg, (*File).saveExport) f.walk(ast2, ctxProg, (*File).saveExport2) f.Comments = ast1.Comments f.AST = ast2 } // Like ast.CommentGroup's Text method but preserves // leading blank lines, so that line numbers line up. func commentText(g *ast.CommentGroup) string { var pieces []string for _, com := range g.List { c := com.Text // Remove comment markers.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jun 07 16:54:27 GMT 2023 - 14.3K bytes - Viewed (0) -
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 Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 5.2K bytes - Viewed (0) -
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 Apr 28 09:35:09 GMT 2024 - Last Modified: Sat Oct 08 09:16:32 GMT 2022 - 6.4K bytes - Viewed (3) -
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 Apr 28 09:35:09 GMT 2024 - Last Modified: Mon Dec 04 03:50:58 GMT 2023 - 30.3K bytes - Viewed (0) -
cmd/admin-handlers.go
ch := globalNotificationSys.DriveSpeedTest(ctx, opts) enc := json.NewEncoder(w) for { select { case <-ctx.Done(): return case <-keepAliveTicker.C: // Write a blank entry to prevent client from disconnecting if err := enc.Encode(madmin.DriveSpeedTestResult{}); err != nil { return } w.(http.Flusher).Flush() case result, ok := <-ch: if !ok {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Sun Apr 21 11:43:18 GMT 2024 - 97.3K bytes - Viewed (2)