Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestScaledValueInternal (0.3 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/scale_int_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package resource
    
    import (
    	"math"
    	"math/big"
    	"testing"
    )
    
    func TestScaledValueInternal(t *testing.T) {
    	tests := []struct {
    		unscaled *big.Int
    		scale    int
    		newScale int
    
    		want int64
    	}{
    		// remain scale
    		{big.NewInt(1000), 0, 0, 1000},
    
    		// scale down
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 11 03:04:14 UTC 2018
    - 2.1K bytes
    - Viewed (0)
Back to top