- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for testClone (0.33 sec)
-
pkg/kubelet/cm/cpumanager/state/state_test.go
See the License for the specific language governing permissions and limitations under the License. */ package state import ( "reflect" "testing" "k8s.io/utils/cpuset" ) func TestClone(t *testing.T) { expect := ContainerCPUAssignments{ "pod": map[string]cpuset.CPUSet{ "container1": cpuset.New(4, 5, 6), "container2": cpuset.New(1, 2, 3), }, } actual := expect.Clone()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 935 bytes - Viewed (0) -
src/strings/clone_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package strings_test import ( "strings" "testing" "unsafe" ) var emptyString string func TestClone(t *testing.T) { var cloneTests = []string{ "", strings.Clone(""), strings.Repeat("a", 42)[:0], "short", strings.Repeat("a", 42), } for _, input := range cloneTests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 17:24:17 UTC 2023 - 1.1K bytes - Viewed (0) -
src/html/template/clone_test.go
err = added.ExecuteTemplate(b, "a", "1>0") if err != nil { t.Fatal(err) } if got, want := b.String(), ` 1>0 <a href=" 1%3e0 "></a>`; got != want { t.Errorf("got %q want %q", got, want) } } func TestClone(t *testing.T) { // The {{.}} will be executed with data "<i>*/" in different contexts. // In the t0 template, it will be in a text context. // In the t1 template, it will be in a URL context.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:48:16 UTC 2022 - 8K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java
+ MavenProject.EMPTY_PROJECT_VERSION, project.getId()); } @Test void testClone() throws Exception { File f = getFileForClasspathResource("canonical-pom.xml"); MavenProject projectToClone = getProject(f); MavenProject clonedProject = projectToClone.clone();
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sat Apr 15 17:24:20 UTC 2023 - 8K bytes - Viewed (0) -
src/maps/maps_test.go
t.Errorf("EqualFunc(%v, %v, equalNaN) = false, want true", mf, mf) } if !EqualFunc(m1, m2, equalIntStr) { t.Errorf("EqualFunc(%v, %v, equalIntStr) = false, want true", m1, m2) } } func TestClone(t *testing.T) { mc := Clone(m1) if !Equal(mc, m1) { t.Errorf("Clone(%v) = %v, want %v", m1, mc, m1) } mc[16] = 32 if Equal(mc, m1) { t.Errorf("Equal(%v, %v) = true, want false", mc, m1) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 17:05:56 UTC 2023 - 5.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_shuffle.txt
go test -v -shuffle=43 -count=4 foo_test.go stdout '^-test.shuffle 43' stdout '(?s)TestThree(.*)TestTwo(.*)TestOne(.*)TestThree(.*)TestTwo(.*)TestOne(.*)TestThree(.*)TestTwo(.*)TestOne(.*)TestThree(.*)TestTwo(.*)TestOne' go test -v -bench=. -shuffle=44 -count=2 foo_test.go stdout '^-test.shuffle 44' stdout '(?s)TestOne(.*)TestThree(.*)TestTwo(.*)TestOne(.*)TestThree(.*)TestTwo(.*)BenchmarkTwo(.*)BenchmarkOne(.*)BenchmarkThree(.*)'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 20:46:11 UTC 2023 - 4.7K bytes - Viewed (0) -
hack/lib/init.sh
# ln -s $T/dir $T/linkdir # function testone() { # X=$(readlink -f $1 2>&1) # Y=$(kube::readlinkdashf $1 2>&1) # if [ "$X" != "$Y" ]; then # echo readlinkdashf $1: expected "$X", got "$Y" # fi # } # testone / # testone /tmp # testone $T # testone $T/file # testone $T/dir # testone $T/linkfile # testone $T/linkdir # testone $T/nonexistant # testone $T/linkdir/file # testone $T/linkdir/dir
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 16:18:38 UTC 2024 - 6.2K bytes - Viewed (0) -
testing/performance/src/templates/with-verbose-junit/Test.java
@org.junit.Test public void testOne() { for (int i = 0; i < 1000; i++) { System.out.println("Some test output from ${testClassName}.testOne - " + i); System.err.println("Some test error from ${testClassName}.testOne - " + i); } assertEquals(production.getProperty(), "value"); } @org.junit.Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 991 bytes - Viewed (0) -
testing/integ-test/src/integTest/groovy/org/gradle/integtests/fixture/TempDirIsUniquePerTestSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.4K bytes - Viewed (0) -
platforms/enterprise/enterprise-plugin-performance/src/templates/project-with-source/Test.java
@org.junit.Test public void testOne() throws Exception { if(Boolean.getBoolean("slowTasks")) { Thread.sleep(10); } for (int i = 0; i < 500; i++) { System.out.println("Some test output from ${testClassName}.testOne - " + i); System.err.println("Some test error from ${testClassName}.testOne - " + i); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jul 17 10:38:06 UTC 2023 - 1.9K bytes - Viewed (0)