Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 987 for parsing (0.21 sec)

  1. internal/amztime/parse_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    // Package amztime implements AWS specific time parsing and deviations
    package amztime
    
    import (
    	"errors"
    	"testing"
    	"time"
    )
    
    func TestParse(t *testing.T) {
    	type testCase struct {
    		expectedErr  error
    		expectedTime time.Time
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 07 14:24:54 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  2. internal/s3select/json/errors.go

    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errJSONParsingError(err error) *s3Error {
    	return &s3Error{
    		code:       "JSONParsingError",
    		message:    "Encountered an error parsing the JSON file. Check the file and try again.",
    		statusCode: 400,
    		cause:      err,
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.6K bytes
    - Viewed (0)
  3. cmd/handler-utils.go

    	err := xmlDecoder(r.Body, &locationConstraint, r.ContentLength)
    	if err != nil && r.ContentLength != 0 {
    		internalLogOnceIf(GlobalContext, err, "location-constraint-xml-parsing")
    		// Treat all other failures as XML parsing errors.
    		return "", ErrMalformedXML
    	} // else for both err as nil or io.EOF
    	location = locationConstraint.Location
    	if location == "" {
    		location = globalSite.Region
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  4. internal/grid/manager.go

    		if err != nil {
    			writeErr(fmt.Errorf("error parsing grid connect: %w", err))
    			return
    		}
    		if message.Op != OpConnect {
    			writeErr(fmt.Errorf("unexpected connect op: %v", message.Op))
    			return
    		}
    		var cReq connectReq
    		_, err = cReq.UnmarshalMsg(message.Payload)
    		if err != nil {
    			writeErr(fmt.Errorf("error parsing connectReq: %w", err))
    			return
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  5. internal/mountinfo/mountinfo_linux_test.go

    func TestReadProcMountFrom(t *testing.T) {
    	successCase := `/dev/0 /path/to/0 type0 flags 0 0
    		/dev/1    /path/to/1   type1	flags 1 1
    		/dev/2 /path/to/2 type2 flags,1,2=3 2 2
    		`
    	// Success case, verifies if parsing works properly.
    	{
    		mounts, err := parseMountFrom(strings.NewReader(successCase))
    		if err != nil {
    			t.Errorf("expected success")
    		}
    		if len(mounts) != 3 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  6. .github/actions/comment-docs-preview-in-pr/app/main.py

        repo = g.get_repo(settings.github_repository)
        try:
            event = PartialGithubEvent.parse_file(settings.github_event_path)
        except ValidationError as e:
            logging.error(f"Error parsing event file: {e.errors()}")
            sys.exit(0)
        use_pr: Union[PullRequest, None] = None
        for pr in repo.get_pulls():
            if pr.head.sha == event.workflow_run.head_commit.id:
                use_pr = pr
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 09 15:02:53 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/MetadataReader.java

     *
     */
    public interface MetadataReader {
    
        /**
         * The key for the option to enable strict parsing. This option is of type {@link Boolean} and defaults to {@code
         * true}. If {@code false}, unknown elements will be ignored instead of causing a failure.
         */
        String IS_STRICT = "org.apache.maven.artifact.repository.metadata.io.isStrict";
    
        /**
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  8. internal/bucket/versioning/error.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package versioning
    
    import (
    	"fmt"
    )
    
    // Error is the generic type for any error happening during tag
    // parsing.
    type Error struct {
    	err error
    }
    
    // Errorf - formats according to a format specifier and returns
    // the string as a value that satisfies error of type tagging.Error
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultRootLocator.java

                // even before the arguments from the command line are parsed.  Any exception
                // that would happen here should cause the build to fail at a later stage
                // (when actually parsing the POM) and will lead to a better exception being
                // displayed to the user, so just bail out and return false.
            }
            return false;
        }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/toolchain/ToolchainsBuilder.java

    public interface ToolchainsBuilder {
    
        /**
         * Builds the toolchains model from the configured toolchain files.
         *
         * @param userToolchainsFile The path to the toolchains file, may be <code>null</code> to disable parsing.
         * @return The toolchains model or <code>null</code> if no toolchain file was configured or the configured file does
         *         not exist.
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 1.8K bytes
    - Viewed (0)
Back to top