Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for newProfile (0.24 sec)

  1. maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivatorTest.java

        void testName() {
            Profile profile = newProfile(ActivationOS.newBuilder().name("windows"));
    
            assertActivation(false, profile, newContext(null, newProperties("linux", "6.5.0-1014-aws", "amd64")));
            assertActivation(true, profile, newContext(null, newProperties("windows", "6.5.0-1014-aws", "aarch64")));
        }
    
        @Test
        void testNegatedName() {
            Profile profile = newProfile(ActivationOS.newBuilder().name("!windows"));
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Jun 05 14:16:41 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/PropertyProfileActivatorTest.java

            assertActivation(true, profile, newContext(null, newProperties("prop", "value")));
    
            assertActivation(false, profile, newContext(null, newProperties("prop", "other")));
    
            assertActivation(false, profile, newContext(null, newProperties("other", "")));
        }
    
        @Test
        void testWithNegatedValue_UserProperty() throws Exception {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. maven-model-builder/src/test/java/org/apache/maven/model/profile/DefaultProfileSelectorTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@link DefaultProfileSelector}.
     */
    public class DefaultProfileSelectorTest {
        private Profile newProfile(String id) {
            Activation activation = new Activation();
            Profile profile = new Profile();
            profile.setId(id);
            profile.setActivation(activation);
            return profile;
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 16:51:39 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. pkg/scheduler/profile/profile.go

    )
    
    // RecorderFactory builds an EventRecorder for a given scheduler name.
    type RecorderFactory func(string) events.EventRecorder
    
    // newProfile builds a Profile for the given configuration.
    func newProfile(ctx context.Context, cfg config.KubeSchedulerProfile, r frameworkruntime.Registry, recorderFact RecorderFactory,
    	opts ...frameworkruntime.Option) (framework.Framework, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 06 01:11:19 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivatorTest.java

        @Override
        @BeforeEach
        void setUp() throws Exception {
            activator = new JdkVersionProfileActivator();
        }
    
        private Profile newProfile(String jdkVersion) {
            Activation a = Activation.newBuilder().jdk(jdkVersion).build();
    
            Profile p = Profile.newBuilder().activation(a).build();
    
            return p;
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 16:51:39 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

            return newProfile(activationFile);
        }
    
        private Profile newMissingProfile(String filePath) {
            ActivationFile activationFile =
                    ActivationFile.newBuilder().missing(filePath).build();
            return newProfile(activationFile);
        }
    
        private Profile newProfile(ActivationFile activationFile) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. cluster/gce/windows/testonly/user-profile.psm1

    <#
    .Synopsis
       Rough PS functions to create new user profiles
    .DESCRIPTION
       Call the Create-NewProfile function directly to create a new profile
    .EXAMPLE
       Create-NewProfile -Username 'testUser1' -Password 'testUser1'
    .NOTES
       Created by: Josh Rickard (@MS_dministrator) and Thom Schumacher (@driberif)
       Forked by: @crshnbrn66, then @pjh (2018-11-08). See
         https://gist.github.com/pjh/9753cd14400f4e3d4567f4553ba75f1d/revisions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 26 00:44:57 UTC 2019
    - 9.4K bytes
    - Viewed (0)
  8. cluster/gce/windows/testonly/install-ssh.psm1

        try {
          # Create-NewProfile will throw these errors:
          #
          # - if the username already exists:
          #
          #   Create-NewProfile : Exception calling "SetInfo" with "0" argument(s):
          #   "The account already exists."
          #
          # - if the username is invalid (e.g. gke-29bd5e8d9ea0446f829d)
          #
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 09 05:09:18 UTC 2021
    - 11.6K bytes
    - Viewed (0)
  9. src/runtime/pprof/pprof.go

    	profiles.mu.Unlock()
    }
    
    // NewProfile creates a new profile with the given name.
    // If a profile with that name already exists, NewProfile panics.
    // The convention is to use a 'import/path.' prefix to create
    // separate name spaces for each package.
    // For compatibility with various tools that read pprof data,
    // profile names should not contain spaces.
    func NewProfile(name string) *Profile {
    	lockProfiles()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  10. src/runtime/pprof/pprof_test.go

    // Issue 18836.
    func TestEmptyCallStack(t *testing.T) {
    	name := fmt.Sprintf("test18836_%d", emptyCallStackTestRun)
    	emptyCallStackTestRun++
    
    	t.Parallel()
    	var buf strings.Builder
    	p := NewProfile(name)
    
    	p.Add("foo", 47674)
    	p.WriteTo(&buf, 1)
    	p.Remove("foo")
    	got := buf.String()
    	prefix := name + " profile: total 1\n"
    	if !strings.HasPrefix(got, prefix) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top