• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

akvo / nmis-mobile / 6220231408

18 Sep 2023 08:45AM UTC coverage: 88.213% (-0.04%) from 88.25%
6220231408

push

github

wayangalihpratama
[#155] Initial repeat question group support

800 of 987 branches covered (0.0%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

1737 of 1889 relevant lines covered (91.95%)

20.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/app/src/form/components/QuestionGroup.js
1
import React from 'react';
2
import { View } from 'react-native';
3
import Question from './Question';
4
import { FieldGroupHeader } from '../support';
5

6
const QuestionGroup = ({ index, group, setFieldValue, values }) => {
4✔
7
  const repeats = group?.repeats || [];
35✔
8
  // const { name, repeat, repeats, repeatButtonPlacement } = group;
9
  // const repeatText = group?.repeatText || `Number of ${name}`;
10

11
  return (
35✔
12
    <View>
13
      <FieldGroupHeader index={index} {...group} />
14
      {repeats.map((r) => (
15
        <View>Repeat title</View>
×
16
      ))}
17
      <Question group={group} setFieldValue={setFieldValue} values={values} />
18
    </View>
19
  );
20
};
21

22
export default QuestionGroup;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc