Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for clearSubNames (0.35 sec)

  1. src/testing/match.go

    	if skip && !partialSkip {
    		return name, false, false
    	}
    
    	return name, ok, partial
    }
    
    // clearSubNames clears the matcher's internal state, potentially freeing
    // memory. After this is called, T.Name may return the same strings as it did
    // for earlier subtests.
    func (m *matcher) clearSubNames() {
    	m.mu.Lock()
    	defer m.mu.Unlock()
    	clear(m.subNames)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. src/testing/fuzz.go

    			// which will use a large amount of memory. The subtest names aren't
    			// useful since there's no way to re-run them deterministically.
    			f.testContext.match.clearSubNames()
    		}
    
    		// Record the stack trace at the point of this call so that if the subtest
    		// function - which runs in a separate stack - is marked as a helper, we can
    		// continue walking the stack into the parent test.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
Back to top