Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1191 - 1200 of 1,384 for _func (0.03 sec)

  1. cmd/os-rename_linux.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"syscall"
    )
    
    // RenameSys is low level call in case of Linux this uses syscall.Rename() directly.
    func RenameSys(src, dst string) (err error) {
    	return syscall.Rename(src, dst)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 15 01:09:38 UTC 2024
    - 999 bytes
    - Viewed (0)
  2. istioctl/cmd/istioctl/main.go

    package main
    
    import (
    	"fmt"
    	"os"
    
    	// import all known client auth plugins
    	_ "k8s.io/client-go/plugin/pkg/client/auth"
    
    	"istio.io/istio/istioctl/cmd"
    	"istio.io/istio/pkg/log"
    )
    
    func main() {
    	if err := cmd.ConfigAndEnvProcessing(); err != nil {
    		fmt.Fprintf(os.Stderr, "Could not initialize: %v\n", err)
    		exitCode := cmd.GetExitCode(err)
    		os.Exit(exitCode)
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. internal/bucket/replication/replication_test.go

    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run(testCase.opts.Name, func(t *testing.T) {
    			result := testCase.c.Replicate(testCase.opts)
    			if result != testCase.expectedResult {
    				t.Errorf("expected: %v, got: %v", testCase.expectedResult, result)
    			}
    		})
    	}
    }
    
    func TestHasActiveRules(t *testing.T) {
    	testCases := []struct {
    		inputConfig    string
    		prefix         string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  4. internal/s3select/csv/reader_contrib_test.go

    				t.Errorf("Case %d failed: expected %v results %v", i, c.totalFields, fields)
    			}
    		})
    	}
    }
    
    type errReader struct {
    	err error
    }
    
    func (e errReader) Read(p []byte) (n int, err error) {
    	return 0, e.err
    }
    
    func TestReadFailures(t *testing.T) {
    	customErr := errors.New("unable to read file :(")
    	cases := []struct {
    		file            string
    		recordDelimiter string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 38.5K bytes
    - Viewed (0)
  5. cni/test/install_k8s_test.go

    	// Must set chainedCNIPlugin to true if delayedConfFile is specified
    	delayedConfFile        string
    	expectedOutputFile     string
    	expectedPostCleanFile  string
    	cniConfDirOrderedFiles []string
    }
    
    func TestInstall(t *testing.T) {
    	testDataDir := env.IstioSrc + "/cni/test/testdata"
    	cases := []testCase{
    		{
    			name:                   "File with pre-plugins--.conflist",
    			chainedCNIPlugin:       true,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 30 23:59:49 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. cmd/admin-router.go

    	adminAPISiteReplicationNetPerf = "/site-replication/netperf"
    	adminAPIClientDevNull          = "/speedtest/client/devnull"
    	adminAPIClientDevExtraTime     = "/speedtest/client/devnull/extratime"
    )
    
    var gzipHandler = func() func(http.Handler) http.HandlerFunc {
    	gz, err := gzhttp.NewWrapper(gzhttp.MinSize(1000), gzhttp.CompressionLevel(gzip.BestSpeed))
    	if err != nil {
    		// Static params, so this is very unlikely.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. tests/distinct_test.go

    package tests_test
    
    import (
    	"regexp"
    	"testing"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestDistinct(t *testing.T) {
    	users := []User{
    		*GetUser("distinct", Config{}),
    		*GetUser("distinct", Config{}),
    		*GetUser("distinct", Config{}),
    		*GetUser("distinct-2", Config{}),
    		*GetUser("distinct-3", Config{}),
    	}
    	users[0].Age = 20
    
    	if err := DB.Create(&users).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. cni/pkg/pluginlistener/listener.go

    // limitations under the License.
    
    package pluginlistener
    
    import (
    	"fmt"
    	"net"
    	"os"
    	"path/filepath"
    
    	"istio.io/istio/pkg/log"
    )
    
    func NewListener(path string) (net.Listener, error) {
    	// Remove unix socket before use.
    	if err := os.Remove(path); err != nil && !os.IsNotExist(err) {
    		// Anything other than "file not found" is an error.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_remote_function_test.cc

                                           bool remote_func_outputs = false,
                                           bool has_packed_input = false) {
      return TestRemoteExecuteSilentCopies(async, remote, /*func=*/true,
                                           heavy_load_on_streaming_rpc,
                                           remote_func_outputs, has_packed_input);
    }
    
    TEST(CAPI, RemoteExecuteSilentCopiesAsyncFunc) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Dec 11 22:56:03 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  10. manifests/addons/dashboards/lib/lib-grid.libsonnet

    // This is forked from https://grafana.github.io/grafonnet/API/util.html#obj-grid
    // to allow automatic width to fill the grid
    {
      local root = self,
    
      local gridWidth = 24,
    
      '#makeGrid':: d.func.new(
        |||
          `makeGrid` returns an array of `panels` organized in a grid with equal width
          and `panelHeight`. Row panels are used as "linebreaks", if a Row panel is collapsed,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jun 04 18:05:06 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top