Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 724 for Restore (0.26 sec)

  1. test/fixedbugs/issue32187.go

    		{"type assertion", "", func() { _ = x == x.(*int) }},
    		{"out of bounds", "", func() { _ = x == s[1] }},
    		{"nil pointer dereference #1", "", func() { _ = x == *p }},
    		// TODO(mdempsky): Restore "nil pointer dereference" check. The Go
    		// spec doesn't mandate an order for panics (or even panic
    		// messages), but left-to-right is less confusing to users.
    		{"nil pointer dereference #2", "", func() { _ = *l == r[0] }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 19 23:02:39 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. tools/istio-iptables/pkg/builder/iptables_builder_test.go

    			var actual strings.Builder
    			for _, rule := range rules {
    				fmt.Fprintln(&actual, strings.Join(rule, " "))
    			}
    			compareToGolden(t, goldenName, actual.String())
    
    			// Check build restore
    			compareToGolden(t, goldenName+"-restore", rulesRestore)
    		} else {
    			if len(rules) > 0 {
    				t.Errorf("Unexpected rules to be empty but instead got %#v", rules)
    			}
    			if rulesRestore != "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/config/LoggingSystemAdapter.java

            Snapshot snapshot = snapshot();
            if (!enabled) {
                enabled = true;
                configurer.configure(logLevel);
            }
            return snapshot;
        }
    
        @Override
        public void restore(Snapshot state) {
            SnapshotImpl snapshot = (SnapshotImpl) state;
            logLevel = snapshot.level;
            enabled = snapshot.enabled;
            configurer.configure(logLevel);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/TextUtil.java

            return path.replace(File.separatorChar, '/');
        }
    
        /**
         * Checks if a String is whitespace, empty ("") or null.
         * <p>
         * This function was copied from Apache Commons-Lang to restore TAPI compatibility
         * with Java 6 on old Gradle versions because StringUtils require SQLException which
         * is absent from Java 6.
         */
        public static boolean isBlank(String str) {
            int strLen;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. src/log/slog/logger_test.go

    func TestConnections(t *testing.T) {
    	var logbuf, slogbuf bytes.Buffer
    
    	// Revert any changes to the default logger. This is important because other
    	// tests might change the default logger using SetDefault. Also ensure we
    	// restore the default logger at the end of the test.
    	currentLogger := Default()
    	currentLogWriter := log.Writer()
    	currentLogFlags := log.Flags()
    	SetDefault(New(newDefaultHandler(loginternal.DefaultOutput)))
    	t.Cleanup(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  6. src/testing/allocs.go

    // a warm-up. The average number of allocations over the specified number of
    // runs will then be measured and returned.
    //
    // AllocsPerRun sets GOMAXPROCS to 1 during its measurement and will restore
    // it before returning.
    func AllocsPerRun(runs int, f func()) (avg float64) {
    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(1))
    
    	// Warm up the function
    	f()
    
    	// Measure the starting statistics
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 02 00:13:47 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  7. src/testing/run_example_wasm.go

    	os.Stdout = f
    	finished := false
    	start := time.Now()
    
    	// Clean up in a deferred call so we can recover if the example panics.
    	defer func() {
    		timeSpent := time.Since(start)
    
    		// Restore stdout, get output and remove temporary file.
    		os.Stdout = stdout
    		var buf strings.Builder
    		_, seekErr := f.Seek(0, io.SeekStart)
    		_, readErr := io.Copy(&buf, f)
    		out := buf.String()
    		f.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables_test.cc

          "tf_saved_model.session_initializer"() {initializers = [@init_func_restore_op]} : () -> ()
    
          func.func @init_func_restore_op() -> () attributes {tf_saved_model.exported_names = ["restore"], tf_saved_model.initializer_type = "restore_op"} {
            %cst = "tf.Const"() {device = "", value = dense<[1.0, 2.0]> : tensor<2xf32>} : () -> tensor<2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  9. pkg/test/framework/components/istio/configmap.go

    				return err
    			}
    
    			// Store the original YAML so we can restore later.
    			mu.Lock()
    			origCfg[c.Name()] = mcYAML
    			mu.Unlock()
    
    			// Parse the YAML.
    			mc, err := yamlToInjectConfig(mcYAML)
    			if err != nil {
    				return err
    			}
    
    			// Apply the change.
    			if err := update(mc); err != nil {
    				return err
    			}
    
    			// Store the updated MeshConfig back into the config map.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/sigaltstack.go

    	// This is OK since we allocated this much space in mpreinit,
    	// it was just removed from the buffer by stackalloc.
    	oss.ss_size = MINSIGSTKSZ;
    #endif
    	if (sigaltstack(&oss, NULL) < 0) {
    		perror("sigaltstack restore");
    		abort();
    	}
    }
    
    static int zero(void) {
    	return 0;
    }
    */
    import "C"
    
    import (
    	"runtime"
    	"testing"
    )
    
    func testSigaltstack(t *testing.T) {
    	switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top