| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- package d1
- import (
- "testing"
- "gitp78su.ipnodns.ru/svi/kern/v4/d0"
- )
- type tester struct {
- t *testing.T
- }
- func TestDepth1(t *testing.T) {
- sf := &tester{
- t: t,
- }
- sf.makeEnv()
- // sf.newLogBuf()
- // sf.newSafeString()
- // sf.newSafeIntFromStr()
- // sf.newSafeIntGetenv()
- }
- // func (sf *tester) newSafeIntGetenv() {
- // sf.t.Log("newSafeIntGetenv")
- // safeInt := MutSafeIntGetenv(d0.LetTxt("test_env"))
- // if safeInt == nil {
- // sf.t.Fatalf("newSafeIntGetenv(): safeInt==nil")
- // }
- // }
- // func (sf *tester) newSafeIntFromStr() {
- // sf.t.Log("newSafeIntFromStr")
- // safeInt := MutSafeIntFromStr(d0.LetTxt("123"))
- // if safeInt == nil {
- // sf.t.Fatalf("newSafeIntFromStr(): safeInt==nil")
- // }
- // }
- // func (sf *tester) newSafeString() {
- // sf.t.Log("newSafeString")
- // safeString := MutSafeTxt("test string")
- // if safeString == nil {
- // sf.t.Fatalf("newSafeString(): safeString==nil")
- // }
- // }
- // func (sf *tester) newLogBuf() {
- // sf.t.Log("newLogBuf")
- // param := &LogBufParam{
- // IsTerm_: safe_bool.MutSafeBool(true),
- // }
- // logBuf := NewLogBuf(param)
- // if logBuf == nil {
- // sf.t.Fatalf("newLogBuf(): logBuf==nil")
- // }
- // }
- func (sf *tester) makeEnv() {
- sf.t.Log("makeEnv")
- owner := d0.LetOwner(1, "test_mock_env")
- env := MakeEnv(owner)
- if env == nil {
- sf.t.Fatalf("makeEnv(): env==nil")
- }
- }
|