- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for exitStr (0.07 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 Nov 05 11:13:11 UTC 2024 - 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 Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 21 17:46:57 UTC 2023 - 15.3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java
*/ public static UncaughtExceptionHandler systemExit() { return new Exiter(Runtime.getRuntime()); } @VisibleForTesting static final class Exiter implements UncaughtExceptionHandler { private static final LazyLogger logger = new LazyLogger(Exiter.class); private final Runtime runtime; Exiter(Runtime runtime) { this.runtime = runtime; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Dec 14 20:35:03 UTC 2023 - 2.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java
*/ public static UncaughtExceptionHandler systemExit() { return new Exiter(Runtime.getRuntime()); } @VisibleForTesting static final class Exiter implements UncaughtExceptionHandler { private static final LazyLogger logger = new LazyLogger(Exiter.class); private final Runtime runtime; Exiter(Runtime runtime) { this.runtime = runtime; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Dec 14 20:35:03 UTC 2023 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.java
import com.google.common.util.concurrent.UncaughtExceptionHandlers.Exiter; import junit.framework.TestCase; /** @author Gregory Kick */ public class UncaughtExceptionHandlersTest extends TestCase { private Runtime runtimeMock; @Override protected void setUp() { runtimeMock = mock(Runtime.class); } public void testExiter() { new Exiter(runtimeMock).uncaughtException(new Thread(), new Exception());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 09 22:57:07 UTC 2022 - 1.2K bytes - Viewed (0)