Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 486 for parseDir (0.37 sec)

  1. platforms/ide/ide/src/testFixtures/groovy/org/gradle/plugins/ide/fixtures/IdeaFixtures.groovy

    import org.gradle.test.fixtures.file.TestFile
    
    class IdeaFixtures {
        static parseFile(TestFile file) {
            file.assertIsFile()
            new XmlSlurper().parse(file)
        }
    
        static IdeaProjectFixture parseIpr(TestFile projectFile) {
            return new IdeaProjectFixture(projectFile, parseFile(projectFile))
        }
    
        static IdeaModuleFixture parseIml(TestFile moduleFile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/idea/IdeaMultiBuildIntegrationTest.groovy

        String workspaceTask = "idea"
        String libraryPluginId = "java-library"
    
        @Override
        IdeaProjectFixture workspace(TestFile workspaceDir, String ideWorkspaceName) {
            return IdeaFixtures.parseIpr(workspaceDir.file(ideWorkspaceName + ".ipr"))
        }
    
        @Override
        IdeaModuleFixture project(TestFile projectDir, String ideProjectName) {
            return IdeaFixtures.parseIml(projectDir.file(ideProjectName + ".iml"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 01 11:07:39 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. cni/pkg/plugin/cnieventclient_test.go

    	}
    	return eventC
    }
    
    var fakeCmdArgs = &skel.CmdArgs{
    	Netns:       "someNetNS",
    	IfName:      "ethBro",
    	ContainerID: "bbb-eee-www",
    }
    
    var (
    	fakeIP                 = net.ParseIP("99.9.9.9")
    	fakeGW                 = net.ParseIP("88.9.9.9")
    	fakeIDX                = 0
    	fakePrevResultIPConfig = cniv1.IPConfig{
    		Interface: &fakeIDX,
    		Address: net.IPNet{
    			IP: fakeIP,
    		},
    		Gateway: fakeGW,
    	}
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/net/udpsock_plan9_test.go

    			continue
    		}
    		mifc = &ifc
    		break
    	}
    
    	if mifc == nil {
    		t.Skipf("no multicast interfaces found")
    	}
    
    	c1, err := ListenMulticastUDP("udp4", mifc, &UDPAddr{IP: ParseIP("224.0.0.254")})
    	if err != nil {
    		t.Fatalf("multicast not working on %s: %v", runtime.GOOS, err)
    	}
    	c1addr := c1.LocalAddr().(*UDPAddr)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer c1.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 16 17:46:16 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  5. src/flag/example_func_test.go

    	"os"
    )
    
    func ExampleFunc() {
    	fs := flag.NewFlagSet("ExampleFunc", flag.ContinueOnError)
    	fs.SetOutput(os.Stdout)
    	var ip net.IP
    	fs.Func("ip", "`IP address` to parse", func(s string) error {
    		ip = net.ParseIP(s)
    		if ip == nil {
    			return errors.New("could not parse IP")
    		}
    		return nil
    	})
    	fs.Parse([]string{"-ip", "127.0.0.1"})
    	fmt.Printf("{ip: %v, loopback: %t}\n\n", ip, ip.IsLoopback())
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:44:21 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. cmd/net.go

    func sortIPs(ipList []string) []string {
    	if len(ipList) == 1 {
    		return ipList
    	}
    
    	var ipV4s []net.IP
    	var nonIPs []string
    	for _, ip := range ipList {
    		nip := net.ParseIP(ip)
    		if nip != nil {
    			ipV4s = append(ipV4s, nip)
    		} else {
    			nonIPs = append(nonIPs, ip)
    		}
    	}
    
    	sort.Slice(ipV4s, func(i, j int) bool {
    		// This case is needed when all ips in the list
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. docs/fr/docs/advanced/additional-status-codes.md

    Mais vous voulez aussi qu'il accepte de nouveaux éléments. Et lorsque les éléments n'existaient pas auparavant, il les crée et renvoie un code HTTP de 201 "Créé".
    
    Pour y parvenir, importez `JSONResponse` et renvoyez-y directement votre contenu, en définissant le `status_code` que vous souhaitez :
    
    ```Python hl_lines="4 25"
    {!../../../docs_src/additional_status_codes/tutorial001.py!}
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/cli/src/test/groovy/org/gradle/cli/CommandLineParserTest.groovy

        def parsesCombinedShortOptions() {
            parser.option('a')
            parser.option('b')
    
            expect:
            def result = parser.parse(['-ab'])
            result.hasOption('a')
            result.hasOption('b')
        }
    
        def parsesLongOption() {
            parser.option('long-option-a')
            parser.option('long-option-b')
    
            expect:
            def result = parser.parse(['--long-option-a'])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:00:57 UTC 2023
    - 20.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Combinators.kt

        internal
        inline fun <T> paren(crossinline parser: Parser<T>): Parser<T> =
            token(LPAR) * parser * token(RPAR)
    
    
        internal
        inline fun <T> bracket(crossinline parser: Parser<T>): Parser<T> =
            token(LBRACKET) * parser * token(RBRACKET)
    
    
        internal
        inline fun <T> brace(crossinline parser: Parser<T>): Parser<T> =
            token(LBRACE) * parser * token(RBRACE)
    
    
        internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  10. pkg/registry/core/service/storage/alloc.go

    				svcAllocator, ok := allocator.(*ipallocator.MetaAllocator)
    				if ok {
    					err = svcAllocator.AllocateService(service, parsedIP)
    				} else {
    					err = allocator.Allocate(parsedIP)
    				}
    			} else {
    				err = allocator.Allocate(parsedIP)
    			}
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
Back to top