Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,057 for outC (1.74 sec)

  1. src/testing/run_example.go

    	defer func() {
    		timeSpent := time.Since(start)
    
    		// Close pipe, restore stdout, get output.
    		w.Close()
    		os.Stdout = stdout
    		out := <-outC
    
    		err := recover()
    		ok = eg.processRunResult(out, timeSpent, finished, err)
    	}()
    
    	// Run example.
    	eg.F()
    	finished = true
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/go/doc/testdata/example.go

    		w.Close()
    		os.Stdout, os.Stderr = stdout, stderr
    		out := <-outC
    
    		// report any errors
    		tstr := fmt.Sprintf("(%.2f seconds)", dt.Seconds())
    		if g, e := strings.TrimSpace(out), strings.TrimSpace(eg.Output); g != e {
    			fmt.Printf("--- FAIL: %s %s\ngot:\n%s\nwant:\n%s\n",
    				eg.Name, tstr, g, e)
    			ok = false
    		} else if *chatty {
    			fmt.Printf("--- PASS: %s %s\n", eg.Name, tstr)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  3. src/internal/zstd/literals.go

    			if err != nil {
    				return nil, err
    			}
    			outbuf[out4] = byte(t4 >> 8)
    			out4++
    			rbr4.cnt -= uint32(t4 & 0xff)
    		}
    
    		outbuf[out1] = byte(t1 >> 8)
    		out1++
    		rbr1.cnt -= uint32(t1 & 0xff)
    
    		outbuf[out2] = byte(t2 >> 8)
    		out2++
    		rbr2.cnt -= uint32(t2 & 0xff)
    
    		outbuf[out3] = byte(t3 >> 8)
    		out3++
    		rbr3.cnt -= uint32(t3 & 0xff)
    	}
    
    	return outbuf, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 14:30:10 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.h

    // We will only calculate for the "necessary" tensor transferred.
    // from_graph & to_graph are used to compute the "necessary" tensors.
    //     from_graph
    //    /    \   \
    //  out1   out2  out3
    //           \   /
    //           to_graph
    // So only out2 & out3 are counted.
    float GetTransferCost(const std::string& from_hardware_str,
                          const std::string& to_hardware_str,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  5. src/crypto/tls/prf_test.go

    	for i, test := range testSplitPreMasterSecretTests {
    		in, _ := hex.DecodeString(test.in)
    		out1, out2 := splitPreMasterSecret(in)
    		s1 := hex.EncodeToString(out1)
    		s2 := hex.EncodeToString(out2)
    		if s1 != test.out1 || s2 != test.out2 {
    			t.Errorf("#%d: got: (%s, %s) want: (%s, %s)", i, s1, s2, test.out1, test.out2)
    		}
    	}
    }
    
    type testKeysFromTest struct {
    	version                                        uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 27 22:24:05 UTC 2019
    - 5.7K bytes
    - Viewed (0)
  6. src/cmd/fix/main_test.go

    				}()
    			}
    
    			// Apply fix: should get tt.Out.
    			out, fixed, ok := parseFixPrint(t, tt.Fn, tt.Name, tt.In, true)
    			if !ok {
    				return
    			}
    
    			// reformat to get printing right
    			out, _, ok = parseFixPrint(t, fnop, tt.Name, out, false)
    			if !ok {
    				return
    			}
    
    			if tt.Out == "" {
    				tt.Out = tt.In
    			}
    			if out != tt.Out {
    				t.Errorf("incorrect output.\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache-packaging/src/test/groovy/org/gradle/caching/internal/packaging/impl/TarBuildCacheEntryPackerTest.groovy

            pack output,
                prop("out1", FILE, null),
                prop("out2", DIRECTORY, null)
    
            then:
            noExceptionThrown()
    
            when:
            def input = new ByteArrayInputStream(output.toByteArray())
            unpack input,
                prop("out1", FILE, null),
                prop("out2", DIRECTORY, null)
    
            then:
            noExceptionThrown()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  8. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/BuildCacheLocalCacheIntegrationTest.groovy

                            f.text = val
                        }
                    }
                }
    
                apply plugin: "base"
                tasks.create("t", CustomTask).paths << "out1" << "out2"
            """
    
            settingsFile << localCache.localCacheConfiguration() << remoteCache.remoteCacheConfiguration()
    
            executer.beforeExecute { it.withBuildCacheEnabled() }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/arm64/asm_arm64_test.go

    	out1 := `0x0008\s00008\s\(.*\)\tMOVD\t\$1,\sR1`
    	// If the output contains this pattern, the pc-offsite of "MOVD $2, R2" is 16 bytes aligned.
    	out2 := `0x0010\s00016\s\(.*\)\tMOVD\t\$2,\sR2`
    	var testCases = []struct {
    		name string
    		code []byte
    		out  string
    	}{
    		{"8-byte alignment", code1, out1},
    		{"16-byte alignment", code2, out2},
    	}
    
    	for _, test := range testCases {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  10. src/runtime/ehooks_test.go

    			cmd := exec.Command(exe, []string{"-mode", s.mode}...)
    			out, _ := cmd.CombinedOutput()
    			outs := strings.ReplaceAll(string(out), "\n", " ")
    			outs = strings.TrimSpace(outs)
    			if s.expected != "" && s.expected != outs {
    				t.Fatalf("failed%s mode %s: wanted %q\noutput:\n%s", bt,
    					s.mode, s.expected, outs)
    			}
    			for _, need := range s.musthave {
    				if !strings.Contains(outs, need) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top