1
0
Fork 0

Generate proper package names for sets

This commit is contained in:
Gregory Eremin 2018-07-03 19:54:30 +02:00
parent 59a63295b0
commit b4e6729fb0
No known key found for this signature in database
GPG Key ID: 8CB79D42167BEB7F
23 changed files with 35 additions and 44 deletions

View File

@ -111,6 +111,8 @@ THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
src = strings.Replace(src, "Five TypeName = 5", "Five TypeName = "+typ.testVals[4], 1) src = strings.Replace(src, "Five TypeName = 5", "Five TypeName = "+typ.testVals[4], 1)
// Replace the type name // Replace the type name
src = strings.Replace(src, genericTypeName, typ.name, -1) src = strings.Replace(src, genericTypeName, typ.name, -1)
// Replace package name
src = strings.Replace(src, "package impl", "package set"+typ.name, 1)
return doNotEditBanner + src return doNotEditBanner + src
} }

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setint
import ( import (
"fmt" "fmt"

View File

@ -1,14 +1,13 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setint
import ( import (
"testing" "testing"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
) )
const ( const (

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setint16
import ( import (
"fmt" "fmt"

View File

@ -1,14 +1,13 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setint16
import ( import (
"testing" "testing"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
) )
const ( const (

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setint32
import ( import (
"fmt" "fmt"

View File

@ -1,14 +1,13 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setint32
import ( import (
"testing" "testing"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
) )
const ( const (

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setint64
import ( import (
"fmt" "fmt"

View File

@ -1,14 +1,13 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setint64
import ( import (
"testing" "testing"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
) )
const ( const (

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setint8
import ( import (
"fmt" "fmt"

View File

@ -1,14 +1,13 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setint8
import ( import (
"testing" "testing"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
) )
const ( const (

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setstring
import ( import (
"fmt" "fmt"

View File

@ -1,14 +1,13 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setstring
import ( import (
"testing" "testing"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
) )
const ( const (

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setuint
import ( import (
"fmt" "fmt"

View File

@ -1,14 +1,13 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setuint
import ( import (
"testing" "testing"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
) )
const ( const (

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setuint16
import ( import (
"fmt" "fmt"

View File

@ -1,14 +1,13 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setuint16
import ( import (
"testing" "testing"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
) )
const ( const (

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setuint32
import ( import (
"fmt" "fmt"

View File

@ -1,14 +1,13 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setuint32
import ( import (
"testing" "testing"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
) )
const ( const (

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setuint64
import ( import (
"fmt" "fmt"

View File

@ -1,14 +1,13 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setuint64
import ( import (
"testing" "testing"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
) )
const ( const (

View File

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setuint8
import ( import (
"fmt" "fmt"

View File

@ -1,14 +1,13 @@
/******************************************************************************* /*******************************************************************************
THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT!
*******************************************************************************/ *******************************************************************************/
package impl package setuint8
import ( import (
"testing" "testing"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
) )
const ( const (