github.com/blend/go-sdk@v1.20220411.3/protoutil/main_test.go (about)

     1  /*
     2  
     3  Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file.
     5  
     6  */
     7  
     8  package protoutil
     9  
    10  import (
    11  	"math"
    12  	"time"
    13  
    14  	"github.com/blend/go-sdk/protoutil/testdata"
    15  	"github.com/blend/go-sdk/uuid"
    16  )
    17  
    18  // newTestMessage creates a new test message.
    19  func newTestMessage() *testdata.Message {
    20  	return &testdata.Message{
    21  		Uid:           uuid.V4().String(),
    22  		TimestampUtc:  Timestamp(time.Now().UTC()),
    23  		Elapsed:       Duration(500 * time.Millisecond),
    24  		StatusCode:    200,
    25  		ContentLength: math.MaxInt32 + 1,
    26  		Value:         3.14,
    27  		Error:         "this is just a test",
    28  	}
    29  }