- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 82 for BOOM (3.97 sec)
-
src/iter/pull_test.go
return func(yield func(int) bool) { panic("boom") } } func panicCleanupSeq() Seq[int] { return func(yield func(int) bool) { for { if !yield(55) { panic("boom") } } } } func TestPull2Panic(t *testing.T) { t.Run("next", func(t *testing.T) { next, stop := Pull2(panicSeq2()) if !panicsWith("boom", func() { next() }) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 10.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/asan3_fail.go
// license that can be found in the LICENSE file. package main /* #include <stdlib.h> #include <stdio.h> void test(int *a) { // Access Go pointer out of bounds. int c = a[5]; // BOOM // We shouldn't get here; asan should stop us first. printf("a[5]=%d\n", c); } */ import "C" func main() { cIntSlice := []C.int{200, 201, 203, 203, 204} C.test(&cIntSlice[0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 486 bytes - Viewed (0) -
okhttp-testing-support/src/test/kotlin/okhttp3/OkHttpClientTestRuleTest.kt
override fun run() { throw RuntimeException("boom!") } } thread.start() thread.join() assertFailsWith<AssertionError> { testRule.afterEach(extensionContext) }.also { expected -> assertThat(expected).hasMessage("uncaught exception thrown during test") assertThat(expected.cause!!).hasMessage("boom!") } }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.7K bytes - Viewed (0) -
maven-model-builder/src/test/java/org/apache/maven/model/profile/DefaultProfileSelectorTest.java
@Override public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) { throw new RuntimeException("BOOM"); } @Override public boolean presentInConfig( Profile profile, ProfileActivationContext context, ModelProblemCollector problems) { return true;
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Jun 06 16:51:39 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/asan5_fail.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 328 bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyHandlerProviderIntegrationTest.groovy
def lazyDep = provider { throw new GradleException("Boom!") } dependencies { conf lazyDep } // Do the resolve configurations.conf.incoming.dependencies """ when: fails("help") then: failure.assertHasCause("Boom!") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 5.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InterceptorTest.kt
* exception goes to the uncaught exception handler. */ private fun interceptorThrowsRuntimeExceptionAsynchronous(network: Boolean) { val boom = RuntimeException("boom!") addInterceptor(network) { chain: Interceptor.Chain? -> throw boom } val executor = ExceptionCatchingExecutor() client = client.newBuilder() .dispatcher(Dispatcher(executor)) .build() val request =
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 27.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/asan_global1_fail.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main /* #include <stdlib.h> #include <stdio.h> int test(int *a) { a[2] = 300; // BOOM return a[2]; } */ import "C" import "fmt" var cIntArray [2]C.int func main() { r := C.test(&cIntArray[0]) fmt.Println("r value = ", r)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 401 bytes - Viewed (0) -
platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/GroovyStackTraceSpecTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 3.1K bytes - Viewed (0) -
platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/lazy/LazyTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:22:02 UTC 2023 - 5.2K bytes - Viewed (0)