- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for exitStr (0.03 sec)
-
misc/go_android_exec/exitcode_test.go
func TestExitCodeMissing(t *testing.T) { var wantErr *regexp.Regexp check := func(text string) { t.Helper() var out strings.Builder f, exitStr := newExitCodeFilter(&out) if want := "exitcode="; want != exitStr { t.Fatalf("test assumes exitStr will be %q, but got %q", want, exitStr) } f.Write([]byte(text)) _, err := f.Finish() // We should get a no exit code error if err == nil || !wantErr.MatchString(err.Error()) {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed May 03 14:54:58 UTC 2023 - 2.1K bytes - Viewed (0) -
misc/go_android_exec/main.go
const exitStr = "exitcode=" // Build a regexp that matches any prefix of the exit string at the end of // the input. We do it this way to avoid assuming anything about the // subcommand output (e.g., it might not be \n-terminated). var exitReStr strings.Builder for i := 1; i <= len(exitStr); i++ { fmt.Fprintf(&exitReStr, "%s$|", exitStr[:i]) }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Aug 21 17:46:57 UTC 2023 - 15.3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java
return new Exiter(Runtime.getRuntime()::exit); } @VisibleForTesting interface RuntimeWrapper { void exit(int status); } @VisibleForTesting static final class Exiter implements UncaughtExceptionHandler { private static final LazyLogger logger = new LazyLogger(Exiter.class); private final RuntimeWrapper runtime; Exiter(RuntimeWrapper runtime) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Feb 10 21:03:40 UTC 2025 - 2.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java
return new Exiter(Runtime.getRuntime()::exit); } @VisibleForTesting interface RuntimeWrapper { void exit(int status); } @VisibleForTesting static final class Exiter implements UncaughtExceptionHandler { private static final LazyLogger logger = new LazyLogger(Exiter.class); private final RuntimeWrapper runtime; Exiter(RuntimeWrapper runtime) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Feb 10 21:03:40 UTC 2025 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.java
*/ package com.google.common.util.concurrent; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import com.google.common.util.concurrent.UncaughtExceptionHandlers.Exiter; import com.google.common.util.concurrent.UncaughtExceptionHandlers.RuntimeWrapper; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * @author Gregory Kick */ @NullUnmarked
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Feb 10 21:03:40 UTC 2025 - 1.3K bytes - Viewed (0)