@@ -90,6 +90,7 @@ func (tfs *testFileSystem) GetWd() (string, error) {
9090 return tfs .getWd ()
9191}
9292
93+ // TestDefinePaths tests definePaths
9394func TestDefinePaths (t * testing.T ) {
9495 cfg := & config.Config {
9596 ProjectFile : confgFile ,
@@ -116,6 +117,7 @@ func TestDefinePaths(t *testing.T) {
116117 assert .EqualError (t , err , "Cannot read directory" )
117118}
118119
120+ // TestSeekPathDefinePaths tests seekPath
119121func TestSeekPathDefinePaths (t * testing.T ) {
120122 cfg := & config.Config {
121123 ProjectFile : confgFile ,
@@ -133,6 +135,7 @@ func TestSeekPathDefinePaths(t *testing.T) {
133135 assert .EqualError (t , err , "Cannot read directory" )
134136}
135137
138+ // TestSeekPathLoadConfig tests seekPath
136139func TestSeekPathLoadConfig (t * testing.T ) {
137140 cfg := & config.Config {
138141 ProjectFile : confgFile ,
@@ -155,6 +158,7 @@ func TestSeekPathLoadConfig(t *testing.T) {
155158 assert .EqualError (t , err , "Cannot read config file" )
156159}
157160
161+ // TestSeekPathGetWd tests seekPath
158162func TestSeekPathGetWd (t * testing.T ) {
159163 cfg := & config.Config {
160164 ProjectFile : confgFile ,
@@ -180,6 +184,7 @@ func TestSeekPathGetWd(t *testing.T) {
180184 assert .EqualError (t , err , "Cannot get current directory" )
181185}
182186
187+ // TestSeekPathGetProjectNameList tests seekPath
183188func TestSeekPathGetProjectNameList (t * testing.T ) {
184189 cfg := & config.Config {
185190 ProjectFile : confgFile ,
@@ -217,6 +222,7 @@ func TestSeekPathGetProjectNameList(t *testing.T) {
217222 assert .Equal (t , 2 , len (pl ))
218223}
219224
225+ // TestSeekPathrunDialogCase1 tests seekPath
220226func TestSeekPathrunDialogCase1 (t * testing.T ) {
221227 cfg := & config.Config {
222228 ProjectFile : confgFile ,
@@ -255,6 +261,7 @@ func TestSeekPathrunDialogCase1(t *testing.T) {
255261 assert .EqualError (t , err , "Error SelectProject dialog" )
256262}
257263
264+ // TestSeekPathrunDialogCase2 tests seekPath
258265func TestSeekPathrunDialogCase2 (t * testing.T ) {
259266 cfg := & config.Config {
260267 ProjectFile : confgFile ,
@@ -305,6 +312,7 @@ func TestSeekPathrunDialogCase2(t *testing.T) {
305312 assert .EqualError (t , err , "Is ok" )
306313}
307314
315+ // TestSeekPathrunDialogCase3 tests seekPath
308316func TestSeekPathrunDialogCase3 (t * testing.T ) {
309317 cfg := & config.Config {
310318 ProjectFile : confgFile ,
@@ -358,6 +366,7 @@ func TestSeekPathrunDialogCase3(t *testing.T) {
358366 assert .EqualError (t , err , "Is ok" )
359367}
360368
369+ // TestSeekPathrunDialogCase4 tests seekPath
361370func TestSeekPathrunDialogCase4 (t * testing.T ) {
362371 cfg := & config.Config {
363372 ProjectFile : confgFile ,
@@ -411,6 +420,7 @@ func TestSeekPathrunDialogCase4(t *testing.T) {
411420 assert .EqualError (t , err , "Add project name dialog error" )
412421}
413422
423+ // TestSeekPathrunDialogCase5 tests seekPath
414424func TestSeekPathrunDialogCase5 (t * testing.T ) {
415425 cfg := & config.Config {
416426 ProjectFile : confgFile ,
@@ -487,7 +497,7 @@ func TestSeekPathrunDialogCase5(t *testing.T) {
487497 assert .EqualError (t , err , "Cannot save project config file" )
488498}
489499
490- // The same as TestSeekPathrunDialogCase5, but checks return nil for seek function
500+ // TestSeekPathrunDialogCase6 tests seekPath. The same as TestSeekPathrunDialogCase5, but checks return nil for seek function
491501// see saveConfigFile return change
492502func TestSeekPathrunDialogCase6 (t * testing.T ) {
493503 cfg := & config.Config {
0 commit comments