Skip to content

Commit f7fd81c

Browse files
authored
Merge pull request golang#36 from sdboyer/bimodal
Bimodal analysis
2 parents daf9fa9 + b8b3510 commit f7fd81c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4246
-833
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ right now. We'll improve/add explanatory links as we go!
8888
Go code now, but coherently organized."
8989
* [x] Define different network addresses for a given import path
9090
* [ ] Global project aliasing. This is a bit different than the previous.
91-
* [ ] Bi-modal analysis (project-level and package-level)
91+
* [x] Bi-modal analysis (project-level and package-level)
9292
* [ ] Specific sub-package dependencies
9393
* [ ] Enforcing an acyclic project graph (mirroring the Go compiler's
9494
enforcement of an acyclic package import graph)

_testdata/src/empty/.gitkeep

Whitespace-only changes.

_testdata/src/igmain/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package simple
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/igmain/igmain.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// +build ignore
2+
3+
package main
4+
5+
import "unicode"
6+
7+
var _ = unicode.In

_testdata/src/igmaint/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package simple
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/igmaint/igmain.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// +build ignore
2+
3+
package main
4+
5+
import "unicode"
6+
7+
var _ = unicode.In

_testdata/src/igmaint/t_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package simple
2+
3+
import (
4+
"math/rand"
5+
"strconv"
6+
)
7+
8+
var (
9+
_ = rand.Int()
10+
_ = strconv.Unquote
11+
)

_testdata/src/m1p/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package m1p
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/m1p/b.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package m1p
2+
3+
import (
4+
"os"
5+
"sort"
6+
)
7+
8+
var (
9+
_ = sort.Strings
10+
_ = os.PathSeparator
11+
)

_testdata/src/nest/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package simple
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/nest/m1p/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package m1p
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/nest/m1p/b.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package m1p
2+
3+
import (
4+
"os"
5+
"sort"
6+
)
7+
8+
var (
9+
_ = sort.Strings
10+
_ = os.PathSeparator
11+
)

_testdata/src/ren/m1p/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package m1p
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/ren/m1p/b.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package m1p
2+
3+
import (
4+
"os"
5+
"sort"
6+
)
7+
8+
var (
9+
_ = sort.Strings
10+
_ = os.PathSeparator
11+
)

_testdata/src/ren/simple/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package simple
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/simple/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package simple
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/simpleallt/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package simple
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/simpleallt/a_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package simple_test
2+
3+
import (
4+
"sort"
5+
"strconv"
6+
)
7+
8+
var (
9+
_ = sort.Strings
10+
_ = strconv.Unquote
11+
)

_testdata/src/simpleallt/t_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package simple
2+
3+
import (
4+
"math/rand"
5+
"strconv"
6+
)
7+
8+
var (
9+
_ = rand.Int()
10+
_ = strconv.Unquote
11+
)

_testdata/src/simplet/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package simple
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/simplet/t_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package simple
2+
3+
import (
4+
"math/rand"
5+
"strconv"
6+
)
7+
8+
var (
9+
_ = rand.Int()
10+
_ = strconv.Unquote
11+
)

_testdata/src/simplext/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package simple
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/simplext/a_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package simple_test
2+
3+
import (
4+
"sort"
5+
"strconv"
6+
)
7+
8+
var (
9+
_ = sort.Strings
10+
_ = strconv.Unquote
11+
)

_testdata/src/t/t_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package simple
2+
3+
import (
4+
"math/rand"
5+
"strconv"
6+
)
7+
8+
var (
9+
_ = rand.Int()
10+
_ = strconv.Unquote
11+
)

_testdata/src/twopkgs/a.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package simple
2+
3+
import (
4+
"sort"
5+
6+
"github.com/sdboyer/vsolver"
7+
)
8+
9+
var (
10+
_ = sort.Strings
11+
_ = vsolver.Solve
12+
)

_testdata/src/twopkgs/b.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package m1p
2+
3+
import (
4+
"os"
5+
"sort"
6+
)
7+
8+
var (
9+
_ = sort.Strings
10+
_ = os.PathSeparator
11+
)

_testdata/src/xt/a_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package simple_test
2+
3+
import (
4+
"sort"
5+
"strconv"
6+
)
7+
8+
var (
9+
_ = sort.Strings
10+
_ = strconv.Unquote
11+
)

0 commit comments

Comments
 (0)