import pathlib,re,json
p=pathlib.Path('/Users/dave/Code/pom-vault/server/cmd/extracteval/main_test.go');s=p.read_text()
purposes=['Lists golden evaluation fixtures without error.','Runs stubbed golden evaluation and creates its run directory.','Keeps keyboard help visible alongside live-mode status.','Formats boolean switches as on/off.','Prompts for live BDA and LLM separately, then returns to the list.','Moves the selection cursor for j/j/k keyboard input.','Refuses interactive TUI use under CI or without a terminal.','Accepts flags after run identifiers and writes promoted golden output.']
rows=[]
for i,m in enumerate(re.finditer(r'^func (Test\w+)\(t \*testing.T\)',s,re.M)):
 rows.append(dict(file='server/cmd/extracteval/main_test.go',line=s.count('\n',0,m.start())+1,name=m[1],purpose=purposes[i],classification='mixed' if i in (4,5) else 'behavior',restates='no',reason='Exercises real CLI/TUI or helper output; TUI key tests also inspect private mode/cursor fields.' if i in (4,5) else 'Asserts actual command results, output files, formatted output or refusal, without reproducing its algorithm.',execution_notes='Go CLI unit test; live providers disabled where Execute runs. Not executed.',confidence='reviewed',framework='Go'))
pathlib.Path('/tmp/pom-tests-cli.json').write_text(json.dumps(rows,indent=2))
