feat(pierre): sanity check
This commit is contained in:
@@ -37,6 +37,15 @@ func (g *mockGit) AddComment(ctx context.Context, owner, repo string, prID int,
|
||||
return nil
|
||||
}
|
||||
|
||||
func (g *mockGit) GetFileContent(ctx context.Context, owner, repo, path, ref string) (string, error) {
|
||||
// For tests, return a simple placeholder content.
|
||||
return "package main\n\nfunc placeholder() {}", nil
|
||||
}
|
||||
|
||||
func (g *mockGit) GetPRHeadSHA(ctx context.Context, owner, repo string, prID int) (string, error) {
|
||||
return "dummysha", nil
|
||||
}
|
||||
|
||||
func TestSplitDiffIntoChunks(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
|
||||
Reference in New Issue
Block a user