- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for duck (0.1 sec)
-
test/fixedbugs/issue31412a.go
package main type Name string type EFunc func(int) int func Register(f EFunc, names ...Name) int { return f(len(names)) } const ( B Name = "B" ) func RegisterIt() { n := B + "Duck" d := B + "Goose" f := func(x int) int { return x + 9 } Register(f, n, d) } func main() { RegisterIt()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:17:26 UTC 2019 - 531 bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppAppWithLibrariesWithApiDependencies.groovy
#include <iostream> #include "deck.h" int main() { Deck deck; deck.shuffle(); Card& card = deck.draw(); std::cout << card.getName() << std::endl; return 0; } """) } final CppSourceFileElement deck = new CppSourceFileElement() { final SourceFileElement header = ofFile(new SourceFile("public", "deck.h", """ #include "card.h" #ifdef _WIN32
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 3K bytes - Viewed (0) -
platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppStaticLibraryPublishingIntegrationTest.groovy
} } project(':deck') { dependencies { api project(':card') implementation project(':shuffle') } } """ app.deck.writeToProject(file('deck')) app.card.writeToProject(file('card')) app.shuffle.writeToProject(file('shuffle'))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 8.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/shufflesharding/shufflesharding.go
} return &Dealer{ deckSize: deckSize, handSize: handSize, }, nil } // Deal shuffles a card deck and deals a hand of cards, using the given hashValue as the source of entropy. // The deck size and hand size are properties of the Dealer. // This function synchronously makes sequential calls to pick, one for each dealt card.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 23 08:38:03 UTC 2019 - 4K bytes - Viewed (0) -
plugin/pkg/admission/namespace/exists/admission_test.go
namespace := "test" mockClient := newMockClientForTest([]string{}) mockClient.AddReactor("get", "namespaces", func(action core.Action) (bool, runtime.Object, error) { return true, nil, fmt.Errorf("nope, out of luck") }) handler, informerFactory, err := newHandlerForTest(mockClient) if err != nil { t.Errorf("unexpected error initializing handler: %v", err) } informerFactory.Start(wait.NeverStop)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 4.4K bytes - Viewed (0) -
src/database/sql/example_test.go
} log.Println(status) } func ExampleDB_Prepare() { projects := []struct { mascot string release int }{ {"tux", 1991}, {"duke", 1996}, {"gopher", 2009}, {"moby dock", 2013}, } stmt, err := db.Prepare("INSERT INTO projects(id, mascot, release, category) VALUES( ?, ?, ?, ? )") if err != nil { log.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 28 14:05:09 UTC 2020 - 8.5K bytes - Viewed (0) -
src/runtime/write_err_android.go
if errno < 0 { msg := []byte("runtime: cannot connect to /dev/socket/logdw\x00") write(2, unsafe.Pointer(&msg[0]), int32(len(msg))) // TODO(hakim): or should we just close fd and hope for better luck next time? exit(2) } writeFD = uintptr(fd) // Prepopulate invariant part of the header. // The first 11 bytes will be populated later in writeLogdHeader.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 4.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access.go
} } resourceQuotas := []corev1.ResourceQuota{} for i := range items { quota := items[i] quota = e.checkCache(quota) // always make a copy. We're going to muck around with this and we should never mutate the originals resourceQuotas = append(resourceQuotas, *quota) } return resourceQuotas, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 10 13:54:56 UTC 2024 - 5.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/shufflesharding/shufflesharding_test.go
handCoordinate := 0 for _, card := range aHand { handCoordinate = handCoordinate<<7 + card } handCoordinateMap[handCoordinate]++ } numHandsSeen := len(handCoordinateMap) t.Logf("Deck size = %v, hand size = %v, number of possible hands = %d, number of hands seen = %d, number of deals = %d, expected count range = [%v, %v]", test.deckSize, test.handSize, allCoordinateCount, numHandsSeen, test.hashMax, minCount, maxCount)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 25 06:44:08 UTC 2021 - 6.7K bytes - Viewed (0) -
src/crypto/tls/testdata/Server-TLSv10-ExportKeyingMaterial
>>> Flow 3 (client to server) 00000000 16 03 01 00 25 10 00 00 21 20 01 39 8b 2b 21 99 |....%...! .9.+!.| 00000010 fd fc b8 20 f1 51 97 c7 85 13 05 64 55 41 6b c4 |... .Q.....dUAk.| 00000020 1a 5e d5 b2 7c 8b 31 08 0f 78 14 03 01 00 01 01 |.^..|.1..x......| 00000030 16 03 01 00 30 d8 3b e6 9f f8 a8 b2 6b 8b fb 89 |....0.;.....k...|
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:14:50 UTC 2023 - 6.9K bytes - Viewed (0)