github.com/stellar/stellar-etl@v1.0.1-0.20240312145900-4874b6bf2b89/cmd/export_accounts_test.go (about)

     1  package cmd
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestExportAccounts(t *testing.T) {
     8  	tests := []cliTest{
     9  		{
    10  			name:    "accounts: bucket list with exact checkpoint",
    11  			args:    []string{"export_accounts", "-e", "78975", "-o", gotTestDir(t, "bucket_read_exact.txt")},
    12  			golden:  "bucket_read_exact.golden",
    13  			wantErr: nil,
    14  		},
    15  		{
    16  			name:    "accounts: bucket list with end not on checkpoint",
    17  			args:    []string{"export_accounts", "-e", "80210", "-o", gotTestDir(t, "bucket_read_off.txt")},
    18  			golden:  "bucket_read_off.golden",
    19  			wantErr: nil,
    20  		},
    21  	}
    22  
    23  	for _, test := range tests {
    24  		runCLITest(t, test, "testdata/accounts/")
    25  	}
    26  }