Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 127 for as_str (0.1 sec)

  1. src/internal/buildcfg/cfg.go

    }
    
    type goarmFeatures struct {
    	Version   int
    	SoftFloat bool
    }
    
    func (g goarmFeatures) String() string {
    	armStr := strconv.Itoa(g.Version)
    	if g.SoftFloat {
    		armStr += ",softfloat"
    	} else {
    		armStr += ",hardfloat"
    	}
    	return armStr
    }
    
    func goarm() (g goarmFeatures) {
    	const (
    		softFloatOpt = ",softfloat"
    		hardFloatOpt = ",hardfloat"
    	)
    	def := defaultGOARM
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. internal/arn/arn_test.go

    			}
    		})
    	}
    }
    
    func TestParse(t *testing.T) {
    	type args struct {
    		arnStr string
    	}
    	tests := []struct {
    		name    string
    		args    args
    		wantArn ARN
    		wantErr bool
    	}{
    		{
    			name: "valid ARN must succeed",
    			args: args{
    				arnStr: "arn:minio:iam:us-east-1::role/my-role",
    			},
    			wantArn: ARN{
    				Partition:    "minio",
    				Service:      "iam",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 08:31:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. src/math/rand/v2/regress_test.go

    					val = fmt.Sprintf("%#v", out)
    				} else {
    					val = fmt.Sprintf("%T(%v)", out, out)
    				}
    				fmt.Fprintf(&buf, "\t%s, // %s(%s)\n", val, m.Name, argstr)
    			} else if p >= len(regressGolden) {
    				t.Errorf("r.%s(%s) = %v, missing golden value", m.Name, argstr, out)
    			} else {
    				want := regressGolden[p]
    				if m.Name == "Int" {
    					want = int64(int(uint(want.(int64)) << 1 >> 1))
    				}
    				if m.Name == "Uint" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:03:11 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  4. src/math/rand/regress_test.go

    					val = fmt.Sprintf("%T(%v)", out, out)
    				}
    				fmt.Printf("\t%s, // %s(%s)\n", val, m.Name, argstr)
    			} else {
    				want := regressGolden[p]
    				if m.Name == "Int" {
    					want = int64(int(uint(want.(int64)) << 1 >> 1))
    				}
    				if !reflect.DeepEqual(out, want) {
    					t.Errorf("r.%s(%s) = %v, want %v", m.Name, argstr, out, want)
    				}
    			}
    			p++
    		}
    	}
    	if *printgolden {
    		fmt.Printf("}\n")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  5. internal/config/lambda/event/targetlist.go

    		list.targets[target.ID()] = target
    	}
    
    	return nil
    }
    
    // Lookup - checks whether target by target ID exists is valid or not.
    func (list *TargetList) Lookup(arnStr string) (Target, error) {
    	list.RLock()
    	defer list.RUnlock()
    
    	arn, err := ParseARN(arnStr)
    	if err != nil {
    		return nil, err
    	}
    
    	id, found := list.targets[arn.TargetID]
    	if !found {
    		return nil, &ErrARNNotFound{}
    	}
    	return id, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. test/fixedbugs/issue19359.go

    	defer func() {
    		if r := recover(); r != nil {
    			err = fmt.Errorf("addInt failed: %v", r)
    		}
    	}()
    	m[key] += 2018
    	return nil
    }
    
    func addStr(m map[interface{}]string, key interface{}) (err error) {
    	defer func() {
    		if r := recover(); r != nil {
    			err = fmt.Errorf("addStr failed: %v", r)
    		}
    	}()
    	m[key] += "hello, go"
    	return nil
    }
    
    func appendInt(m map[interface{}][]int, key interface{}) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 20 01:47:07 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/process/internal/JvmOptions.java

            for (Object argument : arguments) {
                String argStr = argument.toString();
    
                if (argStr.equals("-ea") || argStr.equals("-enableassertions")) {
                    assertionsEnabled = true;
                } else if (argStr.equals("-da") || argStr.equals("-disableassertions")) {
                    assertionsEnabled = false;
                } else if (argStr.startsWith(XMS_PREFIX)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:45:59 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  8. src/main/webapp/js/search.js

        if (hashIndex >= 0) {
          hashStr = url.substring(hashIndex);
          buf.push("&hash=");
          buf.push(encodeURIComponent(hashStr));
          buf.push(hashStr);
        }
      });
    
      $result.on("click", "a.favorite", function(e) {
        var $favorite = $(this),
            values = $favorite.attr("href").split("#"),
            actionUrl,
            docId;
        if (values.length === 2 && $queryId.length > 0) {
          docId = values[1];
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Mar 30 05:45:24 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/inline/inlheur/testdata/props/funcflags.go

    	os.Exit(2)
    }
    
    // funcflags.go T_exitinexpr 281 0 1
    // <endpropsdump>
    // {"Flags":0,"ParamFlags":[0],"ResultFlags":null}
    // callsite: funcflags.go:286:18|0 flagstr "CallSiteOnPanicPath" flagval 2 score 102 mask 1 maskstr "panicPathAdj"
    // <endcallsites>
    // <endfuncpreamble>
    func T_exitinexpr(x int) {
    	// This function does indeed unconditionally call exit, since the
    	// first thing it does is invoke exprcallsexit, however from the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:01 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      ASSERT_TF_OK(status_);
      tf_gcs_filesystem::DeleteDir(filesystem_, dir.c_str(), status_);
      EXPECT_EQ(TF_GetCode(status_), TF_FAILED_PRECONDITION);
    
      TF_SetStatus(status_, TF_OK, "");
      tf_gcs_filesystem::DeleteFile(filesystem_, file.c_str(), status_);
      EXPECT_TF_OK(status_);
      tf_gcs_filesystem::DeleteDir(filesystem_, dir.c_str(), status_);
      EXPECT_TF_OK(status_);
      TF_FileStatistics stat;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 31 12:04:23 UTC 2020
    - 24.9K bytes
    - Viewed (0)
Back to top