Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 60 for regex (6.15 sec)

  1. istioctl/pkg/metrics/metrics_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package metrics
    
    import (
    	"bytes"
    	"context"
    	"fmt"
    	"regexp"
    	"strings"
    	"testing"
    	"time"
    
    	promv1 "github.com/prometheus/client_golang/api/prometheus/v1"
    	prometheus_model "github.com/prometheus/common/model"
    	corev1 "k8s.io/api/core/v1"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 25 02:07:44 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  2. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package ztunnelconfig
    
    import (
    	"context"
    	"fmt"
    	"io"
    	"os"
    	"regexp"
    	"sort"
    	"strings"
    
    	"github.com/hashicorp/go-multierror"
    	"github.com/spf13/cobra"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  3. cmd/server_test.go

    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/xml"
    	"fmt"
    	"io"
    	"math/rand"
    	"net/http"
    	"net/url"
    	"reflect"
    	"regexp"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/minio/minio-go/v7/pkg/set"
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/pkg/v2/policy"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  4. cmd/admin-handlers.go

    			}
    			return anonCmdLine
    		}
    
    		// Server start command regex groups:
    		// 1 - minio server
    		// 2 - flags e.g. `--address :9000 --certs-dir /etc/minio/certs`
    		// 3 - pool args e.g. `https://node{01...16}.domain/data/disk{001...204} https://node{17...32}.domain/data/disk{001...204}`
    		re := regexp.MustCompile(`^(.*minio\s+server\s+)(--[^\s]+\s+[^\s]+\s+)*(.*)`)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  5. tests/query_test.go

    	if !regexp.MustCompile("SELECT .*id.*name.*updated_at.*created_at.* FROM .*users").MatchString(result.Statement.SQL.String()) {
    		t.Fatalf("SQL should include selected names, but got %v", result.Statement.SQL.String())
    	}
    
    	result = DB.Session(&gorm.Session{DryRun: true}).Model(&User{}).Find(&User{}, user.ID)
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  6. misc/go_android_exec/exitcode_test.go

    		t.Errorf("want output %q, got %q", want, got)
    	}
    	if want := 1; want != code {
    		t.Errorf("want exit code %d, got %d", want, code)
    	}
    }
    
    func TestExitCodeMissing(t *testing.T) {
    	var wantErr *regexp.Regexp
    	check := func(text string) {
    		t.Helper()
    		var out strings.Builder
    		f, exitStr := newExitCodeFilter(&out)
    		if want := "exitcode="; want != exitStr {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed May 03 14:54:58 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  7. tests/sql_builder_test.go

    	sql := DB.Dialector.Explain(stmt.SQL.String(), stmt.Vars...)
    	if !regexp.MustCompile(`.*age.*=8,`).MatchString(sql) {
    		t.Errorf("Failed to generate sql, got %v", sql)
    	}
    
    	stmt = dryRunDB.Model(&user).Where("id = ?", 1).Updates(map[string]interface{}{"age": ageUint64(10241024)}).Statement
    	sql = DB.Dialector.Explain(stmt.SQL.String(), stmt.Vars...)
    	if !regexp.MustCompile(`.*age.*=10241024,`).MatchString(sql) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  8. istioctl/pkg/validate/validate_test.go

    		os.RemoveAll(tempDirJSON)
    		os.RemoveAll(validTempDirJSON)
    	})
    
    	cases := []struct {
    		name           string
    		args           []string
    		wantError      bool
    		expectedRegexp *regexp.Regexp // Expected regexp output
    	}{
    		{
    			name:      "valid port naming service",
    			args:      []string{"--filename", validPortNamingSvcFile},
    			wantError: false,
    		},
    		{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
  9. tests/scanner_valuer_test.go

    package tests_test
    
    import (
    	"context"
    	"database/sql"
    	"database/sql/driver"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"reflect"
    	"regexp"
    	"strconv"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestScannerValuer(t *testing.T) {
    	DB.Migrator().DropTable(&ScannerValuerStruct{})
    	if err := DB.Migrator().AutoMigrate(&ScannerValuerStruct{}); err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  10. internal/arn/arn.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 arn
    
    import (
    	"errors"
    	"fmt"
    	"regexp"
    	"strings"
    )
    
    // ARN structure:
    //
    // arn:partition:service:region:account-id:resource-type/resource-id
    //
    // In this implementation, account-id is empty.
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 3.5K bytes
    - Viewed (0)
Back to top