summaryrefslogtreecommitdiff
path: root/testSort
diff options
context:
space:
mode:
Diffstat (limited to 'testSort')
-rw-r--r--testSort/Makefile4
-rw-r--r--testSort/main.go22
2 files changed, 23 insertions, 3 deletions
diff --git a/testSort/Makefile b/testSort/Makefile
index 50afd9d..88a8320 100644
--- a/testSort/Makefile
+++ b/testSort/Makefile
@@ -1,7 +1,7 @@
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
-run: clean test.pb.go build
+run: clean build
./testSort
vet:
@@ -31,4 +31,4 @@ reset:
reset
clean:
- -rm *.pb.go testSort
+ -rm -f *.pb.go testSort
diff --git a/testSort/main.go b/testSort/main.go
index 01a7c39..332bdf7 100644
--- a/testSort/main.go
+++ b/testSort/main.go
@@ -1,7 +1,27 @@
package main
import "log"
+import "go.wit.com/apps/autogenpb/testautogen"
func main() {
- log.Println("hello testSort")
+ all := new(testautogen.GitTags)
+ // newt := new(testautogen.GitTag)
+
+ new1 := testautogen.GitTag{
+ Refname: "master",
+ Objectname: "blah",
+ }
+ all.Append(&new1)
+
+ new2 := testautogen.GitTag{
+ Refname: "devel",
+ Objectname: "j23jljalse",
+ }
+ all.Append(&new2)
+
+ loop := all.SortByPath()
+ for loop.Scan() {
+ t := loop.Next()
+ log.Println("hello testSort t.Refname =", t.Refname, t.Objectname)
+ }
}