MCPcopy
hub / github.com/google/uuid / TestVersion7FromReader

Function TestVersion7FromReader

uuid_test.go:874–885  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

872}
873
874func TestVersion7FromReader(t *testing.T) {
875 myString := "8059ddhdle77cb52"
876 r := bytes.NewReader([]byte(myString))
877 _, err := NewV7FromReader(r)
878 if err != nil {
879 t.Errorf("failed generating UUID from a reader")
880 }
881 _, err = NewV7FromReader(r)
882 if err == nil {
883 t.Errorf("expecting an error as reader has no more bytes. Got uuid. NewV7FromReader may not be using the provided reader")
884 }
885}
886
887func TestVersion7Monotonicity(t *testing.T) {
888 length := 10000

Callers

nothing calls this directly

Calls 1

NewV7FromReaderFunction · 0.85

Tested by

no test coverage detected