MCPcopy Create free account
hub / github.com/distributedio/titan / TestStringAppend

Function TestStringAppend

command/strings_test.go:495–505  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

493}
494
495func TestStringAppend(t *testing.T) {
496 args := make([]string, 2)
497 args[0] = "Append"
498 args[1] = "Ap"
499
500 out := CallTest("append", args...)
501 assert.Contains(t, out.String(), strconv.Itoa(len(args[1])))
502
503 out = CallTest("append", args...)
504 assert.Contains(t, out.String(), strconv.Itoa(len(args[1])*2))
505}
506
507func TestStringSetBit(t *testing.T) {
508 tests := []struct {

Callers

nothing calls this directly

Calls 2

CallTestFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected