- Sort Score
- Result 10 results
- Languages All
Results 31 - 37 of 37 for testclock (0.3 sec)
-
src/html/template/exec_test.go
name: funcNameTestFunc, }, ) // If we get here, the name did not cause a panic, which is how Funcs // reports an error. t.Errorf("%q succeeded incorrectly as function name", name) } func TestBlock(t *testing.T) { const ( input = `a({{block "inner" .}}bar({{.}})baz{{end}})b` want = `a(bar(hello)baz)b` overlay = `{{define "inner"}}foo({{.}})bar{{end}}` want2 = `a(foo(goodbye)bar)b` )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0) -
tests/query_test.go
type Int64 int64 func (v Int64) Value() (driver.Value, error) { return v - 1, nil } func (f *Int64) Scan(v interface{}) error { y := v.(int64) *f = Int64(y + 1) return nil } func TestPluck(t *testing.T) { users := []*User{ GetUser("pluck-user1", Config{}), GetUser("pluck-user2", Config{}), GetUser("pluck-user3", Config{}), } DB.Create(&users) var names []string
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed May 08 04:07:58 UTC 2024 - 49.8K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
status = file->Tell(&position); EXPECT_EQ(status.code(), Code::OK); EXPECT_EQ(position, test_data.size()); } TEST_P(ModularFileSystemTest, TestClose) { const std::string filename = GetURIForPath("a_file"); std::unique_ptr<WritableFile> file; Status status = env_->NewWritableFile(filename, &file); if (!status.ok())
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 27 20:25:58 UTC 2022 - 71K bytes - Viewed (0) -
src/encoding/xml/marshal_test.go
EndElement{Name{"", "foo"}}, }, want: `<foo></foo>`, }, { desc: "directive", toks: []Token{ Directive("foo"), }, want: `<!foo>`, }} func TestClose(t *testing.T) { for _, tt := range closeTests { tt := tt t.Run(tt.desc, func(t *testing.T) { var out strings.Builder enc := NewEncoder(&out) for j, tok := range tt.toks {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 66K bytes - Viewed (0) -
src/text/template/exec_test.go
name: funcNameTestFunc, }, ) // If we get here, the name did not cause a panic, which is how Funcs // reports an error. t.Errorf("%q succeeded incorrectly as function name", name) } func TestBlock(t *testing.T) { const ( input = `a({{block "inner" .}}bar({{.}})baz{{end}})b` want = `a(bar(hello)baz)b` overlay = `{{define "inner"}}foo({{.}})bar{{end}}` want2 = `a(foo(goodbye)bar)b` )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0) -
src/bytes/bytes_test.go
buf := make([]byte, 1<<16) for i := 0; i < len(buf); i += skip { buf[i] = 1 } for i := 0; i < b.N; i++ { Index(buf, key) } }) } } func TestClone(t *testing.T) { var cloneTests = [][]byte{ []byte(nil), []byte{}, Clone([]byte{}), []byte(strings.Repeat("a", 42))[:0], []byte(strings.Repeat("a", 42))[:0:0], []byte("short"),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 56.5K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/framework_test.go
} got := f.ListPlugins() if diff := cmp.Diff(tt.want, got); diff != "" { t.Errorf("unexpected plugins (-want,+got):\n%s", diff) } }) } } func TestClose(t *testing.T) { tests := []struct { name string plugins *config.Plugins wantErr error }{ { name: "close doesn't return error", plugins: &config.Plugins{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 103K bytes - Viewed (0)