- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,950 for testing (0.2 sec)
-
tests/update_has_one_test.go
package tests_test import ( "database/sql" "testing" "time" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) func TestUpdateHasOne(t *testing.T) { user := *GetUser("update-has-one", Config{}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } user.Account = Account{Number: "account-has-one-association"} if err := DB.Save(&user).Error; err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jul 14 06:55:54 UTC 2022 - 3.6K bytes - Viewed (0) -
tests/associations_many2many_test.go
package tests_test import ( "fmt" "sync" "testing" "gorm.io/gorm" "gorm.io/gorm/clause" . "gorm.io/gorm/utils/tests" ) func TestMany2ManyAssociation(t *testing.T) { user := *GetUser("many2many", Config{Languages: 2}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } CheckUser(t, user, user) // Find var user2 User
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Jun 10 13:05:19 UTC 2023 - 13.2K bytes - Viewed (0) -
internal/config/etcd/etcd_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package etcd import ( "reflect" "testing" ) // TestParseEndpoints - tests parseEndpoints function with valid and invalid inputs. func TestParseEndpoints(t *testing.T) { testCases := []struct { s string endpoints []string secure bool success bool }{ // Invalid inputs
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 2.1K bytes - Viewed (0) -
internal/rest/client_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package rest import ( "errors" "net" "net/url" "testing" ) func TestNetworkError_Unwrap(t *testing.T) { tests := []struct { name string err error target interface{} want bool }{ { name: "url.Error",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 16 17:28:29 UTC 2021 - 1.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/ListTestSuiteBuilder.java
import com.google.common.collect.testing.testers.ListCreationTester; import com.google.common.collect.testing.testers.ListEqualsTester; import com.google.common.collect.testing.testers.ListGetTester; import com.google.common.collect.testing.testers.ListHashCodeTester; import com.google.common.collect.testing.testers.ListIndexOfTester; import com.google.common.collect.testing.testers.ListLastIndexOfTester;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.3K bytes - Viewed (0) -
tests/scopes_test.go
package tests_test import ( "context" "testing" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) func NameIn1And2(d *gorm.DB) *gorm.DB { return d.Where("name in (?)", []string{"ScopeUser1", "ScopeUser2"}) } func NameIn2And3(d *gorm.DB) *gorm.DB { return d.Where("name in (?)", []string{"ScopeUser2", "ScopeUser3"}) } func NameIn(names []string) func(d *gorm.DB) *gorm.DB { return func(d *gorm.DB) *gorm.DB {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Jan 12 08:42:21 UTC 2024 - 3.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTestSuiteBuilder.java
import com.google.common.collect.testing.testers.CollectionCreationTester; import com.google.common.collect.testing.testers.CollectionEqualsTester; import com.google.common.collect.testing.testers.CollectionIsEmptyTester; import com.google.common.collect.testing.testers.CollectionIteratorTester; import com.google.common.collect.testing.testers.CollectionRemoveAllTester; import com.google.common.collect.testing.testers.CollectionRemoveTester;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Feb 26 19:46:10 UTC 2024 - 3.1K bytes - Viewed (0) -
clause/joins_test.go
package clause_test import ( "sync" "testing" "gorm.io/gorm" "gorm.io/gorm/clause" "gorm.io/gorm/schema" "gorm.io/gorm/utils/tests" ) func TestJoin(t *testing.T) { results := []struct { name string join clause.Join sql string }{ { name: "LEFT JOIN", join: clause.Join{ Type: clause.LeftJoin, Table: clause.Table{Name: "user"}, ON: clause.Where{
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Nov 03 13:03:13 UTC 2022 - 2.6K bytes - Viewed (0) -
istioctl/pkg/writer/compare/comparator_test.go
// limitations under the License. package compare import ( "bytes" "os" "testing" ) // TestComparatorMatchingConfigs tests the scenario where Istiod and Envoy configurations match func TestComparatorMatchingSameConfigs(t *testing.T) { cfg, err := os.ReadFile("testdata/configdump.json") if err != nil { t.Fatalf("Failed to read test data: %v", err) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Mar 12 10:02:09 UTC 2024 - 2.3K bytes - Viewed (0) -
build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/DaemonTracker.kt
import org.gradle.api.logging.Logging import org.gradle.api.services.BuildService import org.gradle.api.services.BuildServiceParameters import org.gradle.api.tasks.testing.TestDescriptor import org.gradle.api.tasks.testing.TestListener import org.gradle.api.tasks.testing.TestResult import org.gradle.process.ExecOperations import org.slf4j.LoggerFactory import java.util.concurrent.ConcurrentHashMap import javax.inject.Inject
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Jan 08 12:45:57 UTC 2024 - 3.4K bytes - Viewed (0)