Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 6,421 for testAnd (0.27 sec)

  1. src/cmd/compile/internal/test/testdata/short_test.go

    	}
    }
    
    // TestShortCircuit tests OANDAND and OOROR expressions and short circuiting.
    func TestShortCircuit(t *testing.T) {
    	testAnd(t, false, false, false)
    	testAnd(t, false, true, false)
    	testAnd(t, true, false, false)
    	testAnd(t, true, true, true)
    
    	testOr(t, false, false, false)
    	testOr(t, false, true, true)
    	testOr(t, true, false, true)
    	testOr(t, true, true, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  2. src/internal/runtime/atomic/atomic_test.go

    		<-done
    	}
    
    	// Check that the array has been totally cleared.
    	for i, v := range a {
    		if v != 0 {
    			t.Fatalf("a[%v] not cleared: want %#x, got %#x", i, uint8(0), v)
    		}
    	}
    }
    
    func TestAnd(t *testing.T) {
    	// Basic sanity check.
    	x := uint32(0xffffffff)
    	for i := uint32(0); i < 32; i++ {
    		atomic.And(&x, ^(1 << i))
    		if r := uint32(0xffffffff) << (i + 1); x != r {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/topologymanager/bitmask/bitmask_test.go

    		mask, _ := NewBitMask(tc.bitsSet...)
    		mask.Remove(tc.bitsRemove...)
    		if mask.String() != tc.expectedMask {
    			t.Errorf("Expected mask to be %v, got %v", tc.expectedMask, mask)
    		}
    	}
    }
    
    func TestAnd(t *testing.T) {
    	tcases := []struct {
    		name    string
    		masks   [][]int
    		andMask string
    	}{
    		{
    			name:    "Mask 11 AND mask 11",
    			masks:   [][]int{{0, 1}, {0, 1}},
    			andMask: "11",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:09 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/x86/asm6.go

    	testAnd := p.As == ATESTB || p.As == ATESTL || p.As == ATESTQ || p.As == ATESTW ||
    		p.As == AANDB || p.As == AANDL || p.As == AANDQ || p.As == AANDW
    
    	incDec := p.As == AINCB || p.As == AINCL || p.As == AINCQ || p.As == AINCW ||
    		p.As == ADECB || p.As == ADECL || p.As == ADECQ || p.As == ADECW
    
    	if !cmpAddSub && !testAnd && !incDec {
    		return false, 0
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  5. src/internal/testenv/testenv.go

    // license that can be found in the LICENSE file.
    
    // Package testenv provides information about what functionality
    // is available in different testing environments run by the Go team.
    //
    // It is an internal package because these details are specific
    // to the Go team's test setup (on build.golang.org) and not
    // fundamental to tests in general.
    package testenv
    
    import (
    	"bytes"
    	"errors"
    	"flag"
    	"fmt"
    	"internal/cfg"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/testing.md

    # Testing
    
    Thanks to <a href="https://www.starlette.io/testclient/" class="external-link" target="_blank">Starlette</a>, testing **FastAPI** applications is easy and enjoyable.
    
    It is based on <a href="https://www.python-httpx.org" class="external-link" target="_blank">HTTPX</a>, which in turn is designed based on Requests, so it's very familiar and intuitive.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. pkg/kube/krt/testing.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package krt
    
    // Dump is a *testing* helper to dump the state of a collection, if possible, into logs.
    func Dump[O any](c Collection[O]) {
    	c.(internalCollection[O]).dump()
    }
    
    type TestingDummyContext struct{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/testing/testing.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package testing
    
    import (
    	"context"
    	"testing"
    
    	"k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/client-go/informers"
    	"k8s.io/client-go/kubernetes/fake"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/util/pkiutil/testing/testing.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package testing
    
    import (
    	"crypto"
    	"fmt"
    	"os"
    	"path/filepath"
    	"regexp"
    	"runtime"
    	"runtime/debug"
    	"strings"
    	"sync"
    	"testing"
    
    	kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
    	"k8s.io/kubernetes/cmd/kubeadm/app/util/pkiutil"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. src/go/doc/testdata/testing.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package testing provides support for automated testing of Go packages.
    // It is intended to be used in concert with the “go test” utility, which automates
    // execution of any function of the form
    //     func TestXxx(*testing.T)
    // where Xxx can be any alphanumeric string (but the first letter must not be in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 11.8K bytes
    - Viewed (0)
Back to top