This repository has been archived by the owner on May 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy up name regarding walk project to get annotation
- Loading branch information
Showing
6 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ypicmd/internal/prebuilder/walker/file.go → ...nternal/prebuilder/walker/project_file.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package walker | ||
|
||
// File of walk analysis | ||
type File struct { | ||
// ProjectFile of walk analysis | ||
type ProjectFile struct { | ||
Name string | ||
Mock bool | ||
Constructors []string | ||
} | ||
|
||
// IsEmpty is true if empty truct | ||
func (f *File) IsEmpty() bool { | ||
func (f *ProjectFile) IsEmpty() bool { | ||
return !f.Mock && len(f.Constructors) < 1 | ||
} | ||
|
||
// AddConstructor to add contructor to file | ||
func (f *File) AddConstructor(constructor string) *File { | ||
func (f *ProjectFile) AddConstructor(constructor string) *ProjectFile { | ||
f.Constructors = append(f.Constructors, constructor) | ||
return f | ||
} |
10 changes: 5 additions & 5 deletions
10
...icmd/internal/prebuilder/walker/report.go → ...ternal/prebuilder/walker/project_files.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters