mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-25 23:02:22 +02:00
сделал Date_from_TimestampReference()
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
"github.com/ManyakRus/starter/contextmain"
|
||||
"github.com/google/uuid"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
"os"
|
||||
"reflect"
|
||||
"strings"
|
||||
@@ -1272,3 +1273,12 @@ func TestInsertTextFrom_MiddleOfString(t *testing.T) {
|
||||
t.Errorf("Expected %s, but got %s", expected, result)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDate_from_TimestampReference(t *testing.T) {
|
||||
var Timestamp1 *timestamppb.Timestamp
|
||||
|
||||
result := Date_from_TimestampReference(Timestamp1)
|
||||
if result.IsZero() == false {
|
||||
t.Errorf("Expected time.Time{}, but got %s", result)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user