- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for emptyfile (0.15 sec)
-
tests/scanner_valuer_test.go
} func (role Role) IsAdmin() bool { return role.Name == "admin" } type EmptyTime struct { time.Time } func (t *EmptyTime) Scan(v interface{}) error { nullTime := sql.NullTime{} err := nullTime.Scan(v) t.Time = nullTime.Time return err } func (t EmptyTime) Value() (driver.Value, error) { return time.Now() /* pass tests, mysql 8 doesn't support 0000-00-00 by default */, nil
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 07 07:02:07 UTC 2023 - 10.6K bytes - Viewed (0) -
src/cmd/covdata/tool_test.go
} // Emit program. insrc := filepath.Join("testdata", prog+".go") src := filepath.Join(subdir, prog+".go") emitFile(t, src, insrc) indep := filepath.Join("testdata", "dep.go") dep := filepath.Join(depdir, "dep.go") emitFile(t, dep, indep) // Emit go.mod. mod := filepath.Join(subdir, "go.mod") modsrc := "\nmodule " + mainPkgPath + "\n\ngo 1.19\n"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 20:46:32 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/kube/client.go
_ = c.Close() } func removeEmptyFiles(files []string) []string { out := make([]string, 0, len(files)) for _, f := range files { if !isEmptyFile(f) { out = append(out, f) } } return out } func isEmptyFile(f string) bool { fileInfo, err := os.Stat(f) if err != nil { return true } if fileInfo.Size() == 0 { return true } return false
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 39K bytes - Viewed (0)