- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 37 for StableName (0.19 sec)
-
pkg/test/kube/dump.go
} // outputPath gives a path in the form of workDir/cluster/<prefix>_<suffix> func outputPath(workDir string, cluster cluster.Cluster, prefix, suffix string) string { dir := path.Join(workDir, cluster.StableName()) if err := os.MkdirAll(dir, os.ModeDir|0o700); err != nil { scopes.Framework.Warnf("failed creating directory: %s", dir) } return path.Join(dir, fmt.Sprintf("%s_%s", prefix, suffix)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 22.2K bytes - Viewed (0) -
tests/integration/ambient/baseline_test.go
rules: - from: - source: principals: ["cluster.local/ns/something/sa/else"] `).ApplyOrFail(t) for _, src := range src.Instances() { t.NewSubTest(src.Config().Cluster.StableName()).Run(func(t framework.TestContext) { t.NewSubTest("authz target deny").RunParallel(func(t framework.TestContext) { opts := echo.CallOptions{ To: authzDst, Check: CheckDeny,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 00:07:28 UTC 2024 - 78.4K bytes - Viewed (0) -
schema/naming_test.go
joinTable2 := ns.JoinTableName("UserLanguage") if joinTable2 != "public.user_language" { t.Errorf("invalid join table generated, got %v", joinTable2) } tableName := ns.TableName("Company") if tableName != "public.company" { t.Errorf("invalid table name generated, got %v", tableName) } columdName := ns.ColumnName("", "NameCID") if columdName != "name_cid" { t.Errorf("invalid column name generated, got %v", columdName) } }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue May 30 02:00:48 UTC 2023 - 7K bytes - Viewed (0) -
schema/schema.go
return s, s.err } modelValue := reflect.New(modelType) tableName := namer.TableName(modelType.Name()) if tabler, ok := modelValue.Interface().(Tabler); ok { tableName = tabler.TableName() } if tabler, ok := modelValue.Interface().(TablerWithNamer); ok { tableName = tabler.TableName(namer) } if en, ok := namer.(embeddedNamer); ok { tableName = en.Table }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:52:33 UTC 2024 - 13.7K bytes - Viewed (0) -
migrator/index.go
import "database/sql" // Index implements gorm.Index interface type Index struct { TableName string NameValue string ColumnList []string PrimaryKeyValue sql.NullBool UniqueValue sql.NullBool OptionValue string } // Table return the table name of the index. func (idx Index) Table() string { return idx.TableName } // Name return the name of the index. func (idx Index) Name() string {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Apr 11 02:32:46 UTC 2023 - 1023 bytes - Viewed (0) -
schema/naming.go
IdentifierMaxLength int } // TableName convert string to table name func (ns NamingStrategy) TableName(str string) string { if ns.SingularTable { return ns.TablePrefix + ns.toDBName(str) } return ns.TablePrefix + inflection.Plural(ns.toDBName(str)) } // SchemaName generate schema name from table name, don't guarantee it is the reverse value of TableName func (ns NamingStrategy) SchemaName(table string) string {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 03:46:59 UTC 2024 - 5.3K bytes - Viewed (0) -
tests/migrate_test.go
} tableName := "null_string_model" DB.Migrator().DropTable(tableName) err := DB.Table(tableName).AutoMigrate(&NullModel{}) AssertEqual(t, err, nil) // default null -> 'null' err = DB.Table(tableName).AutoMigrate(&NullStringModel{}) AssertEqual(t, err, nil) columnType, err := findColumnType(tableName, "content") AssertEqual(t, err, nil)
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Mar 18 11:24:16 UTC 2024 - 56.2K bytes - Viewed (0) -
internal/event/target/postgresql_test.go
found = true break } } if !found { t.Fatal("postgres driver not registered") } } func TestPsqlTableNameValidation(t *testing.T) { validTables := []string{"táblë", "table", "TableName", "\"Table name\"", "\"✅✅\"", "table$one", "\"táblë\""} invalidTables := []string{"table name", "table \"name\"", "✅✅", "$table$"} for _, name := range validTables { if err := validatePsqlTableName(name); err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Apr 24 17:51:07 UTC 2024 - 1.7K bytes - Viewed (0) -
tests/table_test.go
} AssertEqual(t, r.Statement.Vars, []interface{}{2, 4, 1, 3}) } type UserWithTableNamer struct { gorm.Model Name string } func (UserWithTableNamer) TableName(namer schema.Namer) string { return namer.TableName("user") } func TestTableWithNamer(t *testing.T) { db, _ := gorm.Open(tests.DummyDialector{}, &gorm.Config{ NamingStrategy: schema.NamingStrategy{ TablePrefix: "t_", },
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Sat Mar 09 09:31:28 UTC 2024 - 10.6K bytes - Viewed (0) -
pkg/util/iptables/monitor_test.go
panic(fmt.Sprintf("bad args %#v", mfc.args)) } op := operation(mfc.args[4]) chainName := mfc.args[5] tableName := mfc.args[7] mfc.mfe.Lock() defer mfc.mfe.Unlock() table := mfc.mfe.tables[tableName] if table == nil { return []byte{}, fmt.Errorf("no such table %q", tableName) } // For ease-of-testing reasons, blockIPTables blocks create and list, but not delete
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:21:59 UTC 2023 - 9.3K bytes - Viewed (0)