- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 7,168 for makeN (0.07 sec)
-
src/container/ring/ring_test.go
r1.Unlink(0) verify(t, &r1, 1, 0) } func makeN(n int) *Ring { r := New(n) for i := 1; i <= n; i++ { r.Value = i r = r.Next() } return r } func sumN(n int) int { return (n*n + n) / 2 } func TestNew(t *testing.T) { for i := 0; i < 10; i++ { r := New(i) verify(t, r, i, -1) } for i := 0; i < 10; i++ { r := makeN(i) verify(t, r, i, sumN(i)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 3.8K bytes - Viewed (0) -
src/make.rc
# (make.bash, make.bat, make.rc)....
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:48:46 UTC 2024 - 3.7K bytes - Viewed (0) -
src/make.bash
bootgo=1.20.6 set -e if [[ ! -f run.bash ]]; then echo 'make.bash must be run from $GOROOT/src' 1>&2 exit 1 fi if [[ "$GOBUILDTIMELOGFILE" != "" ]]; then echo $(LC_TIME=C date) start make.bash >"$GOBUILDTIMELOGFILE" fi # Test for Windows. case "$(uname)" in *MINGW* | *WIN32* | *CYGWIN*) echo 'ERROR: Do not use make.bash to build on Windows.' echo 'Use make.bat instead.' echo exit 1 ;; esac
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:48:46 UTC 2024 - 7.6K bytes - Viewed (0) -
src/make.bat
goto fail L155:del .\cmd\dist\dist.exe L156:goto :eof L157: L158::: DO NOT ADD ANY NEW CODE HERE. L159::: The bootstrap+del above are the final step of make.bat. L160::: If something must be added, add it to cmd/dist's cmdbootstrap, L161::: to avoid needing three copies in three different shell languages L162::: (make.bash, make.bat, make.rc). L163: L164::copydist L165:mkdir "%GOTOOLDIR%" 2>NUL L166:copy cmd\dist\dist.exe "%GOTOOLDIR%\" L167:goto :eof L168: L169::nogoenv L170:set GO111MODULE=off ...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 6.2K bytes - Viewed (0) -
hack/make-rules/make-help.sh
if [ ${CMD_FLAG} = true ]; then continue 2; fi echo -e "${red}${CMD_TARGETS}${reset}" make -C "${KUBE_ROOT}" "${tar}" PRINT_HELP=y echo "---------------------------------------------------------------------------------" CMD_FLAG=true continue 2 fi done echo -e "${red}${tar}${reset}" make -C "${KUBE_ROOT}" "${tar}" PRINT_HELP=y
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 06:46:18 UTC 2022 - 1.6K bytes - Viewed (0) -
pkg/api/service/testing/make.go
Stephen Kitt <******@****.***> 1678807068 +0100
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 7.1K bytes - Viewed (0) -
releasenotes/notes/make-httpbin-work-ocp.yaml
Jonh Wendell <******@****.***> 1700507291 -0500
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 20 19:08:11 UTC 2023 - 156 bytes - Viewed (0) -
src/cmd/compile/internal/test/fixedbugs_test.go
} // The bug was in the following assignment. The return // value of makeT() is not copied out of the args area of // stack frame in a timely fashion. So when write barriers // are enabled, the marshaling of the args for the write // barrier call clobbers the result of makeT() before it is // read by the write barrier code. g = makeT() sink = make([]byte, 1000) // force write barriers to eventually happen } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 06 18:07:35 UTC 2023 - 2.1K bytes - Viewed (0) -
test/fixedbugs/issue13799.go
} } func test2(iter int) { const maxI = 500 m := make(map[int][]int) // ERROR "make\(map\[int\]\[\]int\) does not escape$" // var fn func() for i := 0; i < maxI; i++ { var fn func() // this makes it work, because fn stays off heap j := 0 fn = func() { // ERROR "func literal does not escape$" m[i] = append(m[i], 0) if j < 25 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_chatty_parallel_success_run.txt
package chatty_parallel_test import ( "testing" ) var ( afterFirstLog = make(chan struct{}) afterSubTest = make(chan struct{}) afterSecondLog = make(chan struct{}) ) func TestInterruptor(t *testing.T) { t.Parallel() <-afterFirstLog t.Run("interruption", func (t *testing.T) {}) close(afterSubTest) <-afterSecondLog // Delay the "PASS: TestInterruptor" line until after "CONT TestLog". }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 19:50:36 UTC 2022 - 1K bytes - Viewed (0)