Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,615 for Parses (0.24 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/DisconnectedIvyXmlModuleDescriptorParserTest.groovy

            then:
            localResource.getFile() >> new File('ivy.xml')
            disconnectedParser != null
            disconnectedParser instanceof DisconnectedIvyXmlModuleDescriptorParser.DisconnectedParser
        }
    
        def "creates new internal Ivy parser"() throws Exception {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/net/route/message.go

    			b = b[l:]
    			continue
    		}
    		if w, ok := wireFormats[int(b[3])]; !ok {
    			nskips++
    		} else {
    			m, err := w.parse(typ, b[:l])
    			if err != nil {
    				return nil, err
    			}
    			if m == nil {
    				nskips++
    			} else {
    				msgs = append(msgs, m)
    			}
    		}
    		b = b[l:]
    	}
    	// We failed to parse any of the messages - version mismatch?
    	if nmsgs != len(msgs)+nskips {
    		return nil, errMessageMismatch
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. src/cmd/internal/archive/archive.go

    func New(f *os.File) (*Archive, error) {
    	_, err := f.Write(archiveHeader)
    	if err != nil {
    		return nil, err
    	}
    	return &Archive{f: f}, nil
    }
    
    // Parse parses an object file or archive from f.
    func Parse(f *os.File, verbose bool) (*Archive, error) {
    	var r objReader
    	r.init(f)
    	t, err := r.peek(8)
    	if err != nil {
    		if err == io.EOF {
    			err = io.ErrUnexpectedEOF
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  4. src/net/error_test.go

    		default:
    			return fmt.Errorf("OpError.Source or Addr is unknown type: %T, %v", addr, e)
    		}
    	}
    	if e.Err == nil {
    		return fmt.Errorf("OpError.Err is empty: %v", e)
    	}
    	return nil
    }
    
    // parseDialError parses nestedErr and reports whether it is a valid
    // error value from Dial, Listen functions.
    // It returns nil when nestedErr is valid.
    func parseDialError(nestedErr error) error {
    	if nestedErr == nil {
    		return nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/notations/ModuleIdentifierNotationConverterTest.groovy

            }
        }
        @Subject parser = NotationParserBuilder.toType(ModuleIdentifier).fromCharSequence(new ModuleIdentifierNotationConverter(moduleIdentifierFactory)).toComposite()
    
        def "parses module identifier notation"() {
            expect:
            parser.parseNotation("org.gradle:gradle-core") == newId("org.gradle", "gradle-core")
            parser.parseNotation(" foo:bar ") == newId("foo", "bar")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go

    )
    
    // javaCPUProfile returns a new Profile from profilez data.
    // b is the profile bytes after the header, period is the profiling
    // period, and parse is a function to parse 8-byte chunks from the
    // profile in its native endianness.
    func javaCPUProfile(b []byte, period int64, parse func(b []byte) (uint64, []byte)) (*Profile, error) {
    	p := &Profile{
    		Period:     period * 1000,
    		PeriodType: &ValueType{Type: "cpu", Unit: "nanoseconds"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/internal/upload/date.go

    	}
    	timeEnd, ok := parsed.Meta["TimeEnd"]
    	if !ok {
    		return time.Time{}, time.Time{}, fmt.Errorf("missing counter metadata for TimeEnd")
    	}
    	end, err = time.Parse(time.RFC3339, timeEnd)
    	if err != nil {
    		return time.Time{}, time.Time{}, fmt.Errorf("failed to parse TimeEnd: %v", err)
    	}
    	return begin, end, nil
    }
    
    // avoid parsing count files multiple times
    type parsedCache struct {
    	mu sync.Mutex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/cli/src/main/java/org/gradle/cli/CommandLineParser.java

        /**
         * Parses the given command-line.
         *
         * @param commandLine The command-line.
         * @return The parsed command line.
         * @throws org.gradle.cli.CommandLineArgumentException
         *          On parse failure.
         */
        public ParsedCommandLine parse(String... commandLine) throws CommandLineArgumentException {
            return parse(Arrays.asList(commandLine));
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MemInfoOsMemoryInfoTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.process.internal.health.memory
    
    import spock.lang.Specification
    
    class MemInfoOsMemoryInfoTest extends Specification {
        def "parses memory from /proc/meminfo on Linux 3.x"() {
            given:
            def snapshot = new MemInfoOsMemoryInfo().getOsSnapshotFromMemInfo(meminfoLinux3())
    
            expect:
            snapshot.physicalMemory.free == 32_343_658_496L
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  10. pkg/util/iptables/testing/parse.go

    var ipTablesValuePtrType = reflect.TypeOf((*IPTablesValue)(nil))
    
    // ParseRule parses rule. If strict is false, it will parse the recognized
    // parameters and ignore unrecognized ones. If it is true, parsing will fail if there are
    // unrecognized parameters.
    func ParseRule(rule string, strict bool) (*Rule, error) {
    	parsed := &Rule{Raw: rule}
    
    	// Split rule into "words" (where a quoted string is a single word).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top