Generate proper package names for sets
This commit is contained in:
parent
59a63295b0
commit
b4e6729fb0
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
Loading…
Reference in New Issue