github.com/unionj-cloud/go-doudou/v2@v2.3.5/toolkit/dbvendor/mysql/parser/console/console_test.go (about) 1 /* 2 * MIT License 3 * 4 * Copyright (c) 2021 zeromicro 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 * copies of the Software, and to permit persons to whom the Software is 11 * furnished to do so, subject to the following conditions: 12 * 13 * The above copyright notice and this permission notice shall be included in all 14 * copies or substantial portions of the Software. 15 */ 16 17 package console 18 19 import "testing" 20 21 func TestConsole(t *testing.T) { 22 console := NewColorConsole() 23 console.Info("info", "info") 24 console.InfoF("%v", "info") 25 26 console.Debug("debug", "debug") 27 console.DebugF("%v", "debug") 28 29 console.Warning("warning", "warning") 30 console.WarningF("%v", "warning") 31 32 console.Error("error") 33 console.ErrorF("%v", "error") 34 }