- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 833 for assert (0.56 sec)
-
src/cmd/compile/internal/types2/context.go
// The hash should be a perfect hash, though out of caution the type checker // does not assume this. The result is guaranteed to not contain blanks. func (ctxt *Context) instanceHash(orig Type, targs []Type) string { assert(ctxt != nil) assert(orig != nil) var buf bytes.Buffer h := newTypeHasher(&buf, ctxt) h.string(strconv.Itoa(ctxt.getID(orig))) // Because we've already written the unique origin ID this call to h.typ is
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:29:21 UTC 2023 - 4.3K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/containingDeclarationProvider/AbstractContainingModuleByFileTest.kt
val module = fileSymbol.getContainingModule() val providerModule = ProjectStructureProvider.getModule(mainFile.project, mainFile, contextualModule = null) assert(module == providerModule) assert(module == mainModule.ktModule) val actualString = buildString { append("File: ").appendLine(mainFile.name)
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Mar 27 16:04:54 UTC 2024 - 1.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/SQLRuntimeExceptionTest.java
* governing permissions and limitations under the License. */ package org.codelibs.core.exception; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import java.sql.SQLException; import java.util.Locale; import org.codelibs.core.misc.LocaleUtil; import org.junit.After; import org.junit.Before; import org.junit.Test; /**
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.2K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy
.withArguments(args) .forwardOutput() } private void assertNoDeadLinks() { assert linkErrors.exists() assert linkErrors.text.stripTrailing().endsWith('All clear!') } private void assertFoundDeadLinks(Collection<DeadLink> deadLinks) { assert linkErrors.exists() def lines = linkErrors.readLines() deadLinks.each { deadLink ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 28 22:01:54 UTC 2022 - 7.8K bytes - Viewed (0) -
tests/joins_test.go
for i := 0; i < 21; i++ { user := &User{Name: fmt.Sprintf("User%d", i), ManagerID: &manager.ID} DB.Create(user) userIDs = append(userIDs, user.ID) } var entries []User assert.NotPanics(t, func() { assert.NoError(t, DB.Debug().Preload("Manager.Team"). Joins("Manager.Company"). Find(&entries).Error) }) } func TestJoinsPreload_Issue7013_RelationEmpty(t *testing.T) { type (
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:52:33 UTC 2024 - 15K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java
import static java.util.Arrays.asList; import static java.util.Collections.unmodifiableSet; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertFalse; import static junit.framework.Assert.assertTrue; import static junit.framework.Assert.fail; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Ordering;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 22 18:19:31 UTC 2024 - 11.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/ArrayUtilTest.java
import static org.hamcrest.CoreMatchers.nullValue; import static org.hamcrest.CoreMatchers.sameInstance; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import java.lang.reflect.Array; import java.util.List; import org.junit.Test; /** * @author higa * */
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 10.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/alias.go
func (a *Alias) TypeParams() *TypeParamList { return a.tparams } // SetTypeParams sets the type parameters of the alias type a. // The alias a must not have type arguments. func (a *Alias) SetTypeParams(tparams []*TypeParam) { assert(a.targs == nil) a.tparams = bindTParams(tparams) } // TypeArgs returns the type arguments used to instantiate the Alias type. // If a is not an instance of a generic alias, the result is nil.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
// DefPredeclaredTestFuncs defines the assert and trace built-ins. // These built-ins are intended for debugging and testing of this // package only. func DefPredeclaredTestFuncs() { if Universe.Lookup("assert") != nil { return // already defined } def(newBuiltin(_Assert)) def(newBuiltin(_Trace)) } func init() { Universe = NewScope(nil, nopos, nopos, "universe") Unsafe = NewPackage("unsafe", "unsafe")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/gcsizes.go
type gcSizes struct { WordSize int64 // word size in bytes - must be >= 4 (32bits) MaxAlign int64 // maximum alignment in bytes - must be >= 1 } func (s *gcSizes) Alignof(T Type) (result int64) { defer func() { assert(result >= 1) }() // For arrays and structs, alignment is defined in terms // of alignment of the elements and fields, respectively. switch t := under(T).(type) { case *Array:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.2K bytes - Viewed (0)