- Sort Score
- Num 10 results
- Language All
Results 351 - 360 of 789 for reflector (0.06 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/features/TesterAnnotation.java
* be used to decide whether to apply a test to a given class-under-test. * * <p>This is needed because annotations can't implement interfaces, which is also why reflection is * used to extract values from the properties of the various annotations. * * @author George van den Driessche */ @Target(value = {ElementType.ANNOTATION_TYPE}) @Retention(value = RetentionPolicy.RUNTIME)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Jun 14 17:55:55 GMT 2024 - 1.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/features/TesterAnnotation.java
* be used to decide whether to apply a test to a given class-under-test. * * <p>This is needed because annotations can't implement interfaces, which is also why reflection is * used to extract values from the properties of the various annotations. * * @author George van den Driessche */ @Target(value = {ElementType.ANNOTATION_TYPE}) @Retention(value = RetentionPolicy.RUNTIME)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Jun 14 17:55:55 GMT 2024 - 1.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
List<List<Integer>> partitions = partition(list, 3); // Changes before the partition is retrieved are reflected list.set(0, 3); Iterator<List<Integer>> iterator = partitions.iterator(); // Changes before the partition is retrieved are reflected list.set(1, 4); List<Integer> first = iterator.next(); // Changes after are too (unlike Iterables.partition)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 35.4K bytes - Click Count (0) -
tests/query_test.go
} case "Birthday": if _, ok := first[dbName].(*time.Time); !ok { t.Errorf("invalid data type for %v, got %#v", dbName, first[dbName]) } } reflectValue := reflect.Indirect(reflect.ValueOf(users[0])) AssertEqual(t, first[dbName], reflectValue.FieldByName(name).Interface()) }) } } }) t.Run("FirstMapWithTable", func(t *testing.T) { first := map[string]interface{}{}
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Jul 22 06:21:04 GMT 2025 - 51K bytes - Click Count (0) -
soft_delete.go
package gorm import ( "database/sql" "database/sql/driver" "encoding/json" "reflect" "github.com/jinzhu/now" "gorm.io/gorm/clause" "gorm.io/gorm/schema" ) type DeletedAt sql.NullTime // Scan implements the Scanner interface. func (n *DeletedAt) Scan(value interface{}) error { return (*sql.NullTime)(n).Scan(value) } // Value implements the driver Valuer interface.
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Wed Feb 01 06:40:55 GMT 2023 - 4.5K bytes - Click Count (1) -
tests/connpool_test.go
package tests_test import ( "context" "database/sql" "os" "reflect" "testing" "gorm.io/driver/mysql" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) type wrapperTx struct { *sql.Tx conn *wrapperConnPool } func (c *wrapperTx) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) { c.conn.got = append(c.conn.got, query) return c.Tx.PrepareContext(ctx, query) }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 5.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java
import static com.google.common.collect.testing.google.MultisetRemoveTester.getRemoveDuplicateInitializingMethods; import static com.google.common.reflect.Reflection.newProxy; import com.google.common.annotations.GwtIncompatible; import com.google.common.base.Ascii; import com.google.common.base.Function; import com.google.common.base.Predicates;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Sep 24 22:52:18 GMT 2025 - 28.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/proxy/NullProxySelector.kt
*/ package okhttp3.internal.proxy import java.io.IOException import java.net.Proxy import java.net.ProxySelector import java.net.SocketAddress import java.net.URI /** * A proxy selector that always returns the [Proxy.NO_PROXY]. */ object NullProxySelector : ProxySelector() { override fun select(uri: URI?): List<Proxy> { requireNotNull(uri) { "uri must not be null" } return listOf(Proxy.NO_PROXY)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.1K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelperTest.java
config.setValue("fieldValue"); when(evaluator.evaluate("fieldValue")).thenReturn("fieldValue"); // Get the field to check its accessibility state java.lang.reflect.Field field = TestBean.class.getDeclaredField("directField"); // Verify field is not accessible initially boolean initialAccessibility = field.canAccess(bean);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Nov 12 14:59:46 GMT 2025 - 8.7K bytes - Click Count (0) -
tests/scan_test.go
package tests_test import ( "reflect" "sort" "strings" "testing" "time" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) type PersonAddressInfo struct { Person *Person `gorm:"embedded"` Address *Address `gorm:"embedded"` } func TestScan(t *testing.T) { user1 := User{Name: "ScanUser1", Age: 1} user2 := User{Name: "ScanUser2", Age: 10} user3 := User{Name: "ScanUser3", Age: 20}
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Wed Jun 12 10:57:36 GMT 2024 - 10.9K bytes - Click Count (0)